de.cau.cs.kieler.core
Class WrappedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.cau.cs.kieler.core.WrappedException

public class WrappedException
extends RuntimeException

A runtime exception that can be used to wrap checked exceptions. Use this where it is appropriate to forward an error to the next point where it can be handled (i.e. displayed to the user) without the need to explicitly declare the error in every method signature.

Rating red

Constructor Summary
WrappedException(Throwable cause)
          Create a wrapped exception.
WrappedException(Throwable cause, String message)
          Create a wrapped exception with additional message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedException

public WrappedException(Throwable cause)
Create a wrapped exception.

Parameters:
cause - the error that caused this exception

WrappedException

public WrappedException(Throwable cause,
                        String message)
Create a wrapped exception with additional message.

Parameters:
cause - the error that caused this exception
message - an additional message for information