org.spicefactory.cinnamon.config.resource
Class ResourceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.spicefactory.cinnamon.config.resource.ResourceException
All Implemented Interfaces:
Serializable

public class ResourceException
extends RuntimeException

Exception thrown when an error reading from a resource occurs.

Author:
Jens Halm
See Also:
Serialized Form

Constructor Summary
ResourceException(Resource resource, String message)
          Creates a new ResourceException.
ResourceException(Resource resource, String message, Throwable cause)
          Creates a new ResourceException.
 
Method Summary
 Resource getResource()
          Returns the Resource instance that caused the error.
 
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

ResourceException

public ResourceException(Resource resource,
                         String message,
                         Throwable cause)
Creates a new ResourceException.

Parameters:
resource - the Resource instance that caused the error
message - the error message
cause - the root cause

ResourceException

public ResourceException(Resource resource,
                         String message)
Creates a new ResourceException.

Parameters:
resource - the Resource instance that caused the error
message - the error message
Method Detail

getResource

public Resource getResource()
Returns the Resource instance that caused the error.

Returns:
the Resource instance that caused the error