Package org.mycore.common
Class MCRCatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mycore.common.MCRCatchException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
MCRAccessException
,MCRActiveLinkException
,MCRCryptKeyNoPermissionException
,MCRPersistentIdentifierException
Instances of this class represent a general exception thrown by any part of
the MyCoRe implementation classes.
Note that this class extends
java.lang.Exception
. Any call of
a method that throws subclass of this class must be catched and handled in
some way.- Version:
- $Revision$ $Date$
- Author:
- Thomas Scheffler (yagee)
- See Also:
-
Constructor Summary
ConstructorDescriptionMCRCatchException
(String message) Creates a new MCRCatchException with an error messageMCRCatchException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns a String containing the invocation stack trace for this exceptiontoString()
Returns a String representation of this exception and all its propertiesMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MCRCatchException
Creates a new MCRCatchException with an error message- Parameters:
message
- the error message for this exception
-
MCRCatchException
Constructs a new exception with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.- Parameters:
message
- the detail messagecause
- the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)- See Also:
-
-
Method Details
-
getStackTraceAsString
Returns a String containing the invocation stack trace for this exception- Returns:
- a String containing the invocation stack trace for this exception
- See Also:
-
toString
Returns a String representation of this exception and all its properties
-