Package org.eclipse.mat
Class SnapshotException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.mat.SnapshotException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MultipleSnapshotsException,OQLParseException
public class SnapshotException extends java.lang.ExceptionException used to indicate a problem different from the standard Java exceptions while performing an operation on an snapshot.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotException()Create snapshot exception - should not be used except during deserialization.SnapshotException(java.lang.String message)Create snapshot exception with message only.SnapshotException(java.lang.String message, java.lang.Throwable cause)Create snapshot exception with message and root cause.SnapshotException(java.lang.Throwable cause)Create snapshot exception with root cause only.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SnapshotExceptionrethrow(java.lang.Throwable e)Wrap, if necessary, and return a SnapshotException.
-
-
-
Constructor Detail
-
SnapshotException
public SnapshotException()
Create snapshot exception - should not be used except during deserialization.
-
SnapshotException
public SnapshotException(java.lang.String message, java.lang.Throwable cause)Create snapshot exception with message and root cause.- Parameters:
message- the message for the exceptioncause- the original exception
-
SnapshotException
public SnapshotException(java.lang.String message)
Create snapshot exception with message only.- Parameters:
message- the message for the exception
-
SnapshotException
public SnapshotException(java.lang.Throwable cause)
Create snapshot exception with root cause only.- Parameters:
cause- the original exception
-
-
Method Detail
-
rethrow
public static final SnapshotException rethrow(java.lang.Throwable e)
Wrap, if necessary, and return a SnapshotException.- Parameters:
e- the original exception- Returns:
- a new exception to throw
-
-