org.ofbiz.base.start
Class StartupException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ofbiz.base.start.StartupException
All Implemented Interfaces:
java.io.Serializable

public class StartupException
extends java.lang.Exception

StartupException

See Also:
Serialized Form

Constructor Summary
StartupException()
          Creates new StartupException without detail message.
StartupException(java.lang.String msg)
          Constructs an StartupException with the specified detail message.
StartupException(java.lang.String msg, java.lang.Throwable nested)
          Constructs an StartupException with the specified detail message and nested Exception.
StartupException(java.lang.Throwable nested)
          Constructs an StartupException with the specified detail message and nested Exception.
 
Method Summary
 java.lang.String getMessage()
          Returns the detail message, including the message from the nested exception if there is one.
 java.lang.Throwable getNested()
          Returns the nested exception if there is one, null if there is not.
 java.lang.String getNonNestedMessage()
          Returns the detail message, NOT including the message from the nested exception.
 void printStackTrace()
          Prints the composite message to System.err.
 void printStackTrace(java.io.PrintStream ps)
          Prints the composite message and the embedded stack trace to the specified stream ps.
 void printStackTrace(java.io.PrintWriter pw)
          Prints the composite message and the embedded stack trace to the specified print writer pw.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StartupException

public StartupException()
Creates new StartupException without detail message.


StartupException

public StartupException(java.lang.String msg)
Constructs an StartupException with the specified detail message.

Parameters:
msg - the detail message.

StartupException

public StartupException(java.lang.String msg,
                        java.lang.Throwable nested)
Constructs an StartupException with the specified detail message and nested Exception.

Parameters:
msg - the detail message.
nested - the chained exception.

StartupException

public StartupException(java.lang.Throwable nested)
Constructs an StartupException with the specified detail message and nested Exception.

Parameters:
nested - the chained exception.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the detail message, including the message from the nested exception if there is one.

Overrides:
getMessage in class java.lang.Throwable

getNonNestedMessage

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


getNested

public java.lang.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 java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream ps.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer pw.

Overrides:
printStackTrace in class java.lang.Throwable