VolD 0.1

VoldException.java

Go to the documentation of this file.
00001 package de.zib.vold.common;
00002 
00006 public class VoldException extends RuntimeException
00007 {
00008         static final long serialVersionUID = 1;
00009 
00010         public VoldException( )
00011         {
00012                 super();
00013         }
00014 
00015         public VoldException( String message )
00016         {
00017                 super( message );
00018         }
00019 
00020         public VoldException( String message, Throwable cause )
00021         {
00022                 super( message, cause );
00023         }
00024 
00025         public VoldException( Throwable cause )
00026         {
00027                 super( cause );
00028         }
00029 
00030         public String getMessge( )
00031         {
00032                 if( null == getCause() )
00033                 {
00034                         return super.getMessage();
00035                 }
00036                 else
00037                 {
00038                         return super.getMessage() + " " + getCause().getMessage();
00039                 }
00040         }
00041 }