Class GeneralRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.ofbiz.base.util.GeneralRuntimeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UtilCodec.IntrusionException

public class GeneralRuntimeException extends RuntimeException
Base OFBiz Runtime Exception, provides nested exceptions, etc
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(Throwable nested)
      Constructs an GeneralException with a nested Exception.
      Parameters:
      nested - the nested exception.
    • 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, null if there is not.
    • 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