org.apache.commons.lang.exception
Class NestableRuntimeException
RuntimeException
org.apache.commons.lang.exception.NestableRuntimeException
- Nestable
public class NestableRuntimeException
extends RuntimeException
The base class of all runtime exceptions which can contain other
exceptions.
delegate
protected NestableDelegate delegate
The helper instance which contains much of the code which we
delegate to.
NestableRuntimeException
public NestableRuntimeException()
Constructs a new NestableRuntimeException
without specified
detail message.
NestableRuntimeException
public NestableRuntimeException(String msg)
Constructs a new NestableRuntimeException
with specified
detail message.
NestableRuntimeException
public NestableRuntimeException(String msg,
Throwable cause)
Constructs a new NestableRuntimeException
with specified
detail message and nested Throwable
.
msg
- the error messagecause
- the exception or error that caused this exception to be
thrown
NestableRuntimeException
public NestableRuntimeException(Throwable cause)
Constructs a new NestableRuntimeException
with specified
nested Throwable
.
cause
- the exception or error that caused this exception to be
thrown
getMessage
public String getMessage()
Returns the detail message string of this throwable. If it was
created with a null message, returns the following:
(cause==null ? null : cause.toString()).
- getMessage in interface Nestable
- String message string of the throwable
printStackTrace
public void printStackTrace()