public class ObjectGridRuntimeException extends RuntimeException implements IObjectGridException
| Constructor and Description |
|---|
ObjectGridRuntimeException()
Constructs a new ObjectGridRuntimeException with
null as its detail
message. |
ObjectGridRuntimeException(String message)
Constructs a new ObjectGridRuntimeException with the specified detail message.
|
ObjectGridRuntimeException(String message,
Throwable cause)
Constructs a new ObjectGridRuntimeException with the specified detail message and
cause.
|
ObjectGridRuntimeException(Throwable cause)
Constructs a new ObjectGridRuntimeException with a specified cause.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Returns the cause of this ObjectGridRuntimeException or
null if the
cause is nonexistent or unknown. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this ObjectGridRuntimeException to the specified value.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ObjectGridRuntimeException()
null as its detail
message. The cause is not initialized, and may subsequently be initialized
by a call to the initCause method.initCause(Throwable)public ObjectGridRuntimeException(String message)
initCause method.message - the detail message. The detail message is saved for later
retrieval by the getMessage method.initCause(Throwable),
Throwable.getMessage()public ObjectGridRuntimeException(Throwable cause)
(cause==null ? null : cause.toString())
is used (which typically contains the class and detail message of cause).
This constructor is useful for ObjectGridRuntimeExceptions that are little more
than wrappers for other throwables.cause - is the exception that caused this exception to be thrown,
which is saved for later retrieval by the getCause() method.
A null value is permitted and indicates that the cause
is nonexistent or is unknown.getCause()public ObjectGridRuntimeException(String message, Throwable cause)
Note that the detail message associated with cause is
not automatically incorporated in this ObjectGridRuntimeException's detail
message.
message - the detail message (which is saved for later retrieval by the
getMessage method).cause - the cause (which is saved for later retrieval by the
getCause method). (Anull value is
permitted, and indicates that the cause is nonexistent or
unknown).getCause(),
Throwable.getMessage()public Throwable getCause()
null if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this ObjectGridRuntimeException to get thrown.)
This implementation returns the cause that was supplied via one of
the constructors requiring a Throwable, or that was set after
creation with the initCause(Throwable) method. While it is
typically unnecessary to override this method, a subclass can override
it to return a cause set by some other means. This is appropriate for
a "legacy chained throwable" that predates the addition of chained
exceptions to Throwable. Note that it is not
necessary to override any of the PrintStackTrace methods,
all of which invoke the getCause method to determine the
cause of an ObjectGridRuntimeException
getCause in interface IObjectGridExceptiongetCause in class Throwablenull if the
cause is nonexistent or unknown.ObjectGridRuntimeException(String, Throwable),
ObjectGridRuntimeException(Throwable),
initCause(Throwable)public Throwable initCause(Throwable cause)
This method can be called at most once. It is generally called from
within the constructor, or immediately after creating the
ObjectGridRuntimeException. If this ObjectGridRuntimeException was created
with ObjectGridRuntimeException(Throwable) or
ObjectGridRuntimeException(String,Throwable), this method cannot be called
even once.
initCause in interface IObjectGridExceptioninitCause in class Throwablecause - the cause (which is saved for later retrieval by the
getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)ObjectGridRuntimeException instance.IllegalArgumentException - if cause is this
ObjectGridRuntimeException. (An ObjectGridRuntimeException cannot be its own cause.)IllegalStateException - if this ObjectGridRuntimeException was
created with ObjectGridRuntimeException(Throwable) or
ObjectGridRuntimeException(String,Throwable), or this method has already
been called on this ObjectGridRuntimeException.ObjectGridRuntimeException(String, Throwable),
ObjectGridRuntimeException(Throwable),
getCause()