Class ResourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.gargoylesoftware.base.resource.ResourceException
-
- All Implemented Interfaces:
java.io.Serializable
public class ResourceException extends java.lang.RuntimeExceptionAn exception that is thrown by ResourceManager- Version:
- $Revision: 1.4 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ThrowableenclosedException_private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedResourceException()Create an instanceResourceException(java.lang.String message)Create an instanceResourceException(java.lang.Throwable throwable)Create an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetEnclosedException()Return the enclosed exceptionvoidprintStackTrace(java.io.PrintStream stream)Print the stack trace.voidprintStackTrace(java.io.PrintWriter writer)Print the stack trace.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
enclosedException_
private final java.lang.Throwable enclosedException_
-
-
Constructor Detail
-
ResourceException
public ResourceException(java.lang.String message)
Create an instance- Parameters:
message- The error message
-
ResourceException
public ResourceException(java.lang.Throwable throwable)
Create an instance- Parameters:
throwable- the error that caused this exception
-
ResourceException
protected ResourceException()
Create an instance
-
-
Method Detail
-
getEnclosedException
public java.lang.Throwable getEnclosedException()
Return the enclosed exception- Returns:
- The enclosed exception
-
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.- Overrides:
printStackTracein classjava.lang.Throwable- Parameters:
writer- Where the stack trace will be written
-
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.- Overrides:
printStackTracein classjava.lang.Throwable- Parameters:
stream- Where the stack trace will be written
-
-