Package org.eclipse.imagen.util
Class ImagingException
Object
Throwable
Exception
RuntimeException
ImagingException
- All Implemented Interfaces:
Serializable
This class is designed to contain information of the (abnormal) situations that happen in ImageN and the operations
plugged into ImageN. The behavior of this class imitates the
Exception class in JavaTM 2 Platform version 1.4 to define a chained exception and is call-compatible with
JavaTM 2 Platform version 1.4: The cause can be stored and retrieved from the
instance of this class. Also, the root cause for an instance can be retrieved.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor.ImagingException(String message) The constructor to accept the message that describes the situation.ImagingException(String message, Throwable cause) The constructor to accept the cause of thisImagingExceptionand the message that describes the situation.ImagingException(Throwable cause) The constructor to accept the cause of thisImagingException. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the cause of thisImagingException.Recursively retrieves the root cause of thisImagingException.voidPrints the stack trace.voidPrints the stack trace.voidPrints the stack trace.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
ImagingException
public ImagingException()The default constructor. -
ImagingException
The constructor to accept the message that describes the situation.- Parameters:
message- The message to describe the situation.
-
ImagingException
The constructor to accept the cause of thisImagingException.- Parameters:
cause- The cause of thisImagingException.
-
ImagingException
The constructor to accept the cause of thisImagingExceptionand the message that describes the situation.- Parameters:
message- The message that describes the situation.cause- The cause of thisImagingException
-
-
Method Details
-
getCause
Returns the cause of thisImagingException. -
getRootCause
Recursively retrieves the root cause of thisImagingException. -
printStackTrace
public void printStackTrace()Prints the stack trace. For JavaTM 2 Platform version 1.4 and up, calls the same method in the super class. For JavaTM 2 Platform version 1.3, prints the stack trace of thisImagingExceptionand the trace of its cause.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints the stack trace. For JavaTM 2 Platform version 1.4 and up, calls the same method in the super class. For JavaTM 2 Platform version 1.4, prints the stack trace of thisImagingExceptionand the trace of its cause.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints the stack trace. For JavaTM 2 Platform version 1.4 and up, calls the same method in the super class. For JavaTM 2 Platform version 1.43, prints the stack trace of thisImagingExceptionand the trace of its cause.- Overrides:
printStackTracein classThrowable
-