commonj.connector.runtime
Class FaultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.resource.ResourceException
              extended by commonj.connector.runtime.FaultException
All Implemented Interfaces:
Serializable

public class FaultException
extends ResourceException

The FaultException represents a fault or a data related error that occured during execution of the interaction through the resource adapter and should be thrown from the execute method of the Interaction if such a condition is detected.

Since:
1.1
See Also:
Serialized Form

Constructor Summary
FaultException()
          Default constructor
FaultException(String message)
          Constructor with message
FaultException(String message, String errorCode)
          Constructor with message and errorCode.
FaultException(String message, Throwable cause)
          Constructor with message and cause exception
FaultException(Throwable cause)
          The constructor with cause exception
 
Method Summary
 
Methods inherited from class javax.resource.ResourceException
getErrorCode, getLinkedException, getMessage, setErrorCode, setLinkedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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()
Default constructor

See Also:
Exception.Exception()

FaultException

public FaultException(String message)
Constructor with message

Parameters:
message - The exception message
See Also:
Exception.Exception(java.lang.String)

FaultException

public FaultException(String message,
                      String errorCode)
Constructor with message and errorCode.

Parameters:
message - the exception message.
errorCode - the errorCode.

FaultException

public FaultException(String message,
                      Throwable cause)
Constructor with message and cause exception

Parameters:
message - The exception message
cause - The cause exception
See Also:
Exception.Exception(java.lang.String, java.lang.Throwable)

FaultException

public FaultException(Throwable cause)
The constructor with cause exception

Parameters:
cause - The cause exception
See Also:
Exception.Exception(java.lang.Throwable)