org.apache.commons.transaction.resource
Class ResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.transaction.resource.ResourceException
All Implemented Interfaces:
Serializable

public class ResourceException
extends Exception

See Also:
Serialized Form

Nested Class Summary
static class ResourceException.Code
           
 
Field Summary
protected  ResourceException.Code code
           
 
Constructor Summary
ResourceException(ResourceException.Code code)
           
ResourceException(ResourceException.Code code, String message)
           
ResourceException(ResourceException.Code code, Throwable cause)
           
ResourceException(String message)
           
ResourceException(String message, Throwable cause)
           
ResourceException(Throwable cause)
           
 
Method Summary
 ResourceException.Code getCode()
          Returns the formal reason for the exception.
 
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
 

Field Detail

code

protected ResourceException.Code code
Constructor Detail

ResourceException

public ResourceException(String message,
                         Throwable cause)

ResourceException

public ResourceException(Throwable cause)

ResourceException

public ResourceException(String message)

ResourceException

public ResourceException(ResourceException.Code code,
                         String message)

ResourceException

public ResourceException(ResourceException.Code code)

ResourceException

public ResourceException(ResourceException.Code code,
                         Throwable cause)
Method Detail

getCode

public ResourceException.Code getCode()
Returns the formal reason for the exception.

Returns:
the reason code


Copyright © 2004-2007 The Apache Software Foundation. All Rights Reserved.