fedora.common
Class FaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fedora.common.FaultException
All Implemented Interfaces:
java.io.Serializable

public class FaultException
extends java.lang.RuntimeException

An unchecked exception that signals an unrecoverable error.

This type of exception is usually not caught, except at the fault barrier of the application.

Author:
Chris Wilper
See Also:
Effective Java Exceptions, Serialized Form

Constructor Summary
FaultException(java.lang.String message)
          Creates an instance with a detail message.
FaultException(java.lang.String message, java.lang.Throwable cause)
          Creates an instance with a detail message and cause.
FaultException(java.lang.Throwable cause)
          Creates an instance with no detail message and cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FaultException

public FaultException(java.lang.String message)
Creates an instance with a detail message.

Parameters:
message - the detail message.

FaultException

public FaultException(java.lang.Throwable cause)
Creates an instance with no detail message and cause.

Parameters:
cause - the cause.

FaultException

public FaultException(java.lang.String message,
                      java.lang.Throwable cause)
Creates an instance with a detail message and cause.

Parameters:
message - the detail message.
cause - the cause.