org.apache.commons.lang.exception
Class NestableError
Errororg.apache.commons.lang.exception.NestableError
- Nestable
public class NestableError
extends Error
The base class of all errors which can contain other exceptions.
NestableError()- Constructs a new
NestableError without specified
detail message.
|
NestableError(String msg)- Constructs a new
NestableError with specified
detail message.
|
NestableError(String msg, Throwable cause)- Constructs a new
NestableError with specified
detail message and nested Throwable.
|
NestableError(Throwable cause)- Constructs a new
NestableError with specified
nested Throwable.
|
delegate
protected NestableDelegate delegate
The helper instance which contains much of the code which we
delegate to.
NestableError
public NestableError()
Constructs a new NestableError without specified
detail message.
NestableError
public NestableError(String msg)
Constructs a new NestableError with specified
detail message.
NestableError
public NestableError(String msg,
Throwable cause) Constructs a new NestableError with specified
detail message and nested Throwable.
msg - the error messagecause - the exception or error that caused this exception to be
thrown
NestableError
public NestableError(Throwable cause)
Constructs a new NestableError 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()