org.apache.commons.resources
Class ResourcesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.resources.ResourcesException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResourcesKeyException

public class ResourcesException
extends RuntimeException
implements Serializable

This class is a general purpose wrapper exception for problems pertaining to Resources.

See Also:
Serialized Form

Constructor Summary
ResourcesException(String message)
          Construct an Exception with the specified message.
ResourcesException(String message, Throwable rootCause)
          Construct an Exception with the specified message.
ResourcesException(Throwable rootCause)
          Construct an Exception with the specified cause.
 
Method Summary
 String getMessage()
          Return the message.
 Throwable getRootCause()
          Return the cause.
 
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

ResourcesException

public ResourcesException(String message)
Construct an Exception with the specified message.

Parameters:
message - The message.

ResourcesException

public ResourcesException(Throwable rootCause)
Construct an Exception with the specified cause.

Parameters:
rootCause - Cause of the exception.

ResourcesException

public ResourcesException(String message,
                          Throwable rootCause)
Construct an Exception with the specified message. and cause.

Parameters:
message - The message.
rootCause - Cause of the exception.
Method Detail

getMessage

public String getMessage()
Return the message.

Overrides:
getMessage in class Throwable
Returns:
The message.

getRootCause

public Throwable getRootCause()
Return the cause.

Returns:
The cause of the Exception.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.