|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.arch4j.core.BaseRuntimeException
This class is the common superclass for Arch4J runtime exceptions.
It is similar to a RemoteException
, in that it can hold
a nested, wrapped exception. Since it extends
RuntimeException
, it can be used like other runtime
exceptions and not declared in the throws
clause of the
method signature.
Copyright: Copyright (c) 2000
Company: SpiderLogic, a service of Wipfli Ullrich Bertelson LLP
Field Summary | |
protected Throwable |
nestedException
The nested, wrapped exception. |
Constructor Summary | |
BaseRuntimeException()
Constructs a BaseRuntimeException with no specified
detail message or nested exception. |
|
BaseRuntimeException(String message)
Constructs a BaseRuntimeException with the specified
detail message. |
|
BaseRuntimeException(String message,
Throwable exception)
Constructs a BaseRuntimeException with the specified
detail message and nested exception. |
|
BaseRuntimeException(Throwable exception)
Constructs a BaseRuntimeException with the specified
nested exception. |
Method Summary | |
String |
getMessage()
Returns the detail message, including the message from the nested exception if there is one. |
Throwable |
getNestedException()
|
String |
getStackTraceString()
|
void |
printStackTrace()
Prints the composite message to System.err . |
void |
printStackTrace(PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream. |
void |
printStackTrace(PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer. |
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 |
Field Detail |
protected Throwable nestedException
Constructor Detail |
public BaseRuntimeException()
BaseRuntimeException
with no specified
detail message or nested exception.
public BaseRuntimeException(String message)
BaseRuntimeException
with the specified
detail message.
message
- The detailed message.public BaseRuntimeException(Throwable exception)
BaseRuntimeException
with the specified
nested exception.
exception
- The nested exception.public BaseRuntimeException(String message, Throwable exception)
BaseRuntimeException
with the specified
detail message and nested exception.
message
- The detailed message.exception
- The nested exception.Method Detail |
public String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
ps
- The print stream.public void printStackTrace()
System.err
.
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
pw
- The print writer.public Throwable getNestedException()
getNestedException
in interface BaseException
public String getStackTraceString()
getStackTraceString
in interface BaseException
String
.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |