| java.lang.Object java.lang.Throwable java.lang.Error com.lutris.util.ChainedError
ChainedError | public class ChainedError extends Error implements ChainedThrowable(Code) | | Error used as a base for creating an error that has a chain of
exceptions that lead to the derived error. Very useful for interfaces
where the implementation exception is not known.
|
Constructor Summary | |
public | ChainedError(String msg) Construct an error without a specified cause. | public | ChainedError(String msg, Throwable cause) Construct an exception with an associated causing exception. | public | ChainedError(Throwable cause) Construct an exception from a causing exception.
Parameters: cause - The error or exception that cause thisexception. |
Method Summary | |
public Throwable | getCause() Get the causing exception associated with this exception. | public String | getMessage() Return the message associated with this exception. | public void | printStackTrace() Prints this ChainedError and its backtrace, and the causes
and their stack traces to the standard error stream. | public void | printStackTrace(PrintStream s) Prints this ChainedError and its backtrace, and the causes
and their stack traces to the e specified print stream. | public void | printStackTrace(PrintWriter s) Prints this ChainedError and its backtrace, and the causes
and their stack traces to the e specified print writer. |
ChainedError | public ChainedError(String msg)(Code) | | Construct an error without a specified cause.
Parameters: msg - The message associated with the exception. |
ChainedError | public ChainedError(String msg, Throwable cause)(Code) | | Construct an exception with an associated causing exception.
Parameters: msg - The message associated with the exception. Parameters: cause - The error or exception that cause thisexception. |
ChainedError | public ChainedError(Throwable cause)(Code) | | Construct an exception from a causing exception.
Parameters: cause - The error or exception that cause thisexception. The message will be take be this object'smessasge. |
getCause | public Throwable getCause()(Code) | | Get the causing exception associated with this exception.
The causing exception or null if no cause is specified. |
getMessage | public String getMessage()(Code) | | Return the message associated with this exception. If causes
are included, they will be appended to the message.
|
printStackTrace | public void printStackTrace()(Code) | | Prints this ChainedError and its backtrace, and the causes
and their stack traces to the standard error stream.
|
printStackTrace | public void printStackTrace(PrintStream s)(Code) | | Prints this ChainedError and its backtrace, and the causes
and their stack traces to the e specified print stream.
|
printStackTrace | public void printStackTrace(PrintWriter s)(Code) | | Prints this ChainedError and its backtrace, and the causes
and their stack traces to the e specified print writer.
|
|
|