Save This Page
Home » displaytag-1.1.1-src » org » displaytag » exception » [javadoc | source]
    1   /**
    2    * Licensed under the Artistic License; you may not use this file
    3    * except in compliance with the License.
    4    * You may obtain a copy of the License at
    5    *
    6    *      http://displaytag.sourceforge.net/license.html
    7    *
    8    * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
    9    * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
   10    * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
   11    */
   12   package org.displaytag.exception;
   13   
   14   /**
   15    * Basic wrapper for checked exceptions.
   16    * @author Fabrizio Giustina
   17    * @version $Revision: 1081 $ ($Author: fgiust $)
   18    */
   19   public class WrappedRuntimeException extends BaseNestableRuntimeException
   20   {
   21   
   22       /**
   23        * D1597A17A6.
   24        */
   25       private static final long serialVersionUID = 899149338534L;
   26   
   27       /**
   28        * Instantiate a new WrappedRuntimeException.
   29        * @param source Class where the exception is generated
   30        * @param cause Original exception
   31        */
   32       public WrappedRuntimeException(Class source, Throwable cause)
   33       {
   34           super(source, cause.getMessage(), cause);
   35       }
   36   
   37       /**
   38        * @see org.displaytag.exception.BaseNestableRuntimeException#getSeverity()
   39        */
   40       public SeverityEnum getSeverity()
   41       {
   42           return SeverityEnum.WARN;
   43       }
   44   
   45   }

Save This Page
Home » displaytag-1.1.1-src » org » displaytag » exception » [javadoc | source]