com.gargoylesoftware.base.resource

Class ResourceException

public class ResourceException extends RuntimeException

An exception that is thrown by ResourceManager

Version: $Revision: 1.4 $

Author: Mike Bowler

Field Summary
ThrowableenclosedException_
static longserialVersionUID
Constructor Summary
ResourceException(String message)
Create an instance
ResourceException(Throwable throwable)
Create an instance
protected ResourceException()
Create an instance
Method Summary
ThrowablegetEnclosedException()
Return the enclosed exception
voidprintStackTrace(PrintWriter writer)
Print the stack trace.
voidprintStackTrace(PrintStream stream)
Print the stack trace.

Field Detail

enclosedException_

private final Throwable enclosedException_

serialVersionUID

private static final long serialVersionUID

Constructor Detail

ResourceException

public ResourceException(String message)
Create an instance

Parameters: message The error message

ResourceException

public ResourceException(Throwable throwable)
Create an instance

Parameters: throwable the error that caused this exception

ResourceException

protected ResourceException()
Create an instance

Method Detail

getEnclosedException

public Throwable getEnclosedException()
Return the enclosed exception

Returns: The enclosed exception

printStackTrace

public void printStackTrace(PrintWriter writer)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.

Parameters: writer Where the stack trace will be written

printStackTrace

public void printStackTrace(PrintStream stream)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.

Parameters: stream Where the stack trace will be written