com.gargoylesoftware.base.resource
Class ResourceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.gargoylesoftware.base.resource.ResourceException
All Implemented Interfaces:
Serializable

public class ResourceException
extends RuntimeException

An exception that is thrown by ResourceManager

Version:
$Revision: 1.5 $
Author:
Mike Bowler
See Also:
Serialized Form

Constructor Summary
protected ResourceException()
          Create an instance
  ResourceException(String message)
          Create an instance
  ResourceException(Throwable throwable)
          Create an instance
 
Method Summary
 Throwable getEnclosedException()
          Return the enclosed exception
 void printStackTrace(PrintStream stream)
          Print the stack trace.
 void printStackTrace(PrintWriter writer)
          Print the stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, 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(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


Copyright © 1998-2005 Gargoyle Software Inc.. All Rights Reserved.