org.spicefactory.cinnamon.config.resource
Class ResourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ResourceException
public ResourceException(Resource resource,
String message,
Throwable cause)
- Creates a new ResourceException.
- Parameters:
resource - the Resource instance that caused the errormessage - the error messagecause - the root cause
ResourceException
public ResourceException(Resource resource,
String message)
- Creates a new ResourceException.
- Parameters:
resource - the Resource instance that caused the errormessage - the error message
getResource
public Resource getResource()
- Returns the Resource instance that caused the error.
- Returns:
- the Resource instance that caused the error