Class ResourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.gargoylesoftware.base.resource.ResourceException
- All Implemented Interfaces:
Serializable
An exception that is thrown by ResourceManager
- Version:
- $Revision: 1.4 $
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create an instanceResourceException
(String message) Create an instanceResourceException
(Throwable throwable) Create an instance -
Method Summary
Modifier and TypeMethodDescriptionReturn the enclosed exceptionvoid
printStackTrace
(PrintStream stream) Print the stack trace.void
printStackTrace
(PrintWriter writer) Print the stack trace.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
enclosedException_
-
-
Constructor Details
-
ResourceException
Create an instance- Parameters:
message
- The error message
-
ResourceException
Create an instance- Parameters:
throwable
- the error that caused this exception
-
ResourceException
protected ResourceException()Create an instance
-
-
Method Details
-
getEnclosedException
Return the enclosed exception- Returns:
- The enclosed exception
-
printStackTrace
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.- Overrides:
printStackTrace
in classThrowable
- Parameters:
writer
- Where the stack trace will be written
-
printStackTrace
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.- Overrides:
printStackTrace
in classThrowable
- Parameters:
stream
- Where the stack trace will be written
-