Package org.eclipse.mat
Class SnapshotException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.mat.SnapshotException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MultipleSnapshotsException
,OQLParseException
Exception used to indicate a problem different from the standard Java
exceptions while performing an operation on an snapshot.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate snapshot exception - should not be used except during deserialization.SnapshotException
(String message) Create snapshot exception with message only.SnapshotException
(String message, Throwable cause) Create snapshot exception with message and root cause.SnapshotException
(Throwable cause) Create snapshot exception with root cause only. -
Method Summary
Modifier and TypeMethodDescriptionstatic final SnapshotException
Wrap, if necessary, and return a SnapshotException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SnapshotException
public SnapshotException()Create snapshot exception - should not be used except during deserialization. -
SnapshotException
Create snapshot exception with message and root cause.- Parameters:
message
- the message for the exceptioncause
- the original exception
-
SnapshotException
Create snapshot exception with message only.- Parameters:
message
- the message for the exception
-
SnapshotException
Create snapshot exception with root cause only.- Parameters:
cause
- the original exception
-
-
Method Details
-
rethrow
Wrap, if necessary, and return a SnapshotException.- Parameters:
e
- the original exception- Returns:
- a new exception to throw
-