Class GeneralRuntimeException

All Implemented Interfaces:
Serializable

public class GeneralRuntimeException extends RuntimeException
Base OFBiz Runtime Exception, provides nested exceptions, etc Created July 12, 2002
Version:
1.0
Author:
David E. Jones
See Also:
  • Constructor Details

    • GeneralRuntimeException

      public GeneralRuntimeException()
      Creates new GeneralException without detail message.
    • GeneralRuntimeException

      public GeneralRuntimeException(String msg)
      Constructs an GeneralException with the specified detail message.
      Parameters:
      msg - the detail message.
    • GeneralRuntimeException

      public GeneralRuntimeException(String msg, Throwable nested)
      Constructs an GeneralException with the specified detail message and nested Exception.
      Parameters:
      msg - the detail message.
  • Method Details

    • getMessage

      public String getMessage()
      Returns the detail message, including the message from the nested exception if there is one.
      Overrides:
      getMessage in class Throwable
    • getNonNestedMessage

      public String getNonNestedMessage()
      Returns the detail message, NOT including the message from the nested exception.
    • getNested

      public Throwable getNested()
      Returns the nested exception if there is one, or null if there is not.

      Note that this behaviour is different from that of GeneralException, which will return this instead of null when no nested exception has been specified.

    • printStackTrace

      public void printStackTrace()
      Prints the composite message to System.err.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream ps)
      Prints the composite message and the embedded stack trace to the specified stream ps.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintWriter pw)
      Prints the composite message and the embedded stack trace to the specified print writer pw.
      Overrides:
      printStackTrace in class Throwable