public class ComponentException extends RuntimeException
Constructor and Description |
---|
ComponentException(String message)
Construct a new ComponentException with the specified message.
|
ComponentException(String message,
Throwable cause)
Construct a new ComponentException with the specified message and cause.
|
ComponentException(Throwable cause)
Construct a new ComponentException with the specified cause.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the cause of this exception or
null if no cause was set. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this exception to the specified value.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ComponentException(String message, Throwable cause)
message
- The message for the exception.cause
- The cause of the exception. May be null
.public ComponentException(String message)
message
- The message for the exception.public ComponentException(Throwable cause)
cause
- The cause of the exception. May be null
.public Throwable getCause()
null
if no cause was set.public Throwable initCause(Throwable cause)
initCause
in class Throwable
cause
- The cause of this exception.IllegalArgumentException
- If the specified cause is this
exception.IllegalStateException
- If the cause of this exception has already
been set.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0