public class IlvSDMException extends Exception
IlvSDMException
are thrown by various classes of the
ilog.views.sdm
package.
This class is mainly used to encapsulate low-level exceptions such as exceptions thrown by an XML parser, without polluting the API with too many exception types.
Constructor and Description |
---|
IlvSDMException()
Creates a new SDM exception with no error message.
|
IlvSDMException(String message)
Creates a new SDM exception with a specified error message.
|
IlvSDMException(String message,
Throwable cause)
Creates a new
IlvSDMException with the specified
detail detail message and cause. |
IlvSDMException(Throwable cause)
Constructs a new
IlvSDMException with the specified cause. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the cause of this
IlvSDMException or
null if the cause is nonexistent or unknown. |
Exception |
getException()
Deprecated.
Please use the method
getCause() instead. |
String |
getMessage()
Returns the detail message for this exception.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IlvSDMException()
public IlvSDMException(String message)
message
- The error message.public IlvSDMException(Throwable cause)
IlvSDMException
with the specified cause.
The message of the cause is used as the message for the
IlvSDMException
instance.cause
- The cause, this is saved for later retrieval by the
getCause()
method. Set this value to null
to indicate that the cause is nonexistent or unknown.public IlvSDMException(String message, Throwable cause)
IlvSDMException
with the specified
detail detail message and cause.
The cause is embedded in the new IlvSDMException
.
However, the new exception will have its own message.
message
- The detail message. This is saved for later retrieval
by the getMessage()
method.cause
- The cause. This is saved for later retrieval by the
getCause()
method. Set this value to null
to indicate that the cause is nonexistent or unknown.@Deprecated public Exception getException()
getCause()
instead.null
if this SDM exception was not thrown due to
a lower-level exception but rather by the code
of the ilog.views.sdm
package itself.public String getMessage()
If there is an embedded exception, and if the IlvSDMException
has no detail message of its own, this method returns
the detail message from the embedded exception.
getMessage
in class Throwable
public Throwable getCause()
IlvSDMException
or
null
if the cause is nonexistent or unknown. (The cause
is the throwable that caused this throwable 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 Throwable.initCause(Throwable)
method.
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.