001    package org.apache.turbine.util;
002    
003    
004    /*
005     * Licensed to the Apache Software Foundation (ASF) under one
006     * or more contributor license agreements.  See the NOTICE file
007     * distributed with this work for additional information
008     * regarding copyright ownership.  The ASF licenses this file
009     * to you under the Apache License, Version 2.0 (the
010     * "License"); you may not use this file except in compliance
011     * with the License.  You may obtain a copy of the License at
012     *
013     *   http://www.apache.org/licenses/LICENSE-2.0
014     *
015     * Unless required by applicable law or agreed to in writing,
016     * software distributed under the License is distributed on an
017     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018     * KIND, either express or implied.  See the License for the
019     * specific language governing permissions and limitations
020     * under the License.
021     */
022    
023    
024    
025    /**
026     * Used for wrapping system errors (exceptions) that may occur in the
027     * application.
028     *
029     * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
030     * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
031     * @version $Id: SystemError.java 957284 2010-06-23 17:53:31Z tv $
032     */
033    public class SystemError extends Error
034    {
035        /** Serial version */
036            private static final long serialVersionUID = -8965344546132616128L;
037    
038            /**
039         * Constructor.
040         *
041         * @param cause A Throwable object
042         */
043        public SystemError(Throwable cause)
044        {
045            super(cause);
046        }
047    
048        /**
049         * Constructor.
050         *
051         * @param message Error message
052         */
053        public SystemError(String message)
054        {
055            super(message);
056        }
057    
058        /**
059         * Constructor.
060         *
061         * @param cause A Throwable object
062         * @param message A String.
063         */
064        public SystemError(String message, Throwable cause)
065        {
066            super(message, cause);
067        }
068    }