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

public class MCRCatchException extends Exception
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 Details

    • MCRCatchException

      public MCRCatchException(String message)
      Creates a new MCRCatchException with an error message
      Parameters:
      message - the error message for this exception
    • MCRCatchException

      public MCRCatchException(String message, Throwable cause)
      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 message
      cause - the cause (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      See Also:
  • Method Details

    • getStackTraceAsString

      public String 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

      public String toString()
      Returns a String representation of this exception and all its properties
      Overrides:
      toString in class Throwable
      Returns:
      a String representation of this exception and all its properties