Class ResourceException

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

public class ResourceException extends RuntimeException
An exception that is thrown by ResourceManager
Version:
$Revision: 1.4 $
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • enclosedException_

      private final Throwable enclosedException_
  • Constructor Details

    • 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 Details

    • 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.
      Overrides:
      printStackTrace in class Throwable
      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.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      stream - Where the stack trace will be written