org.mycore.common
Class MCRCatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.mycore.common.MCRCatchException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MCRActiveLinkException

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: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Thomas Scheffler (yagee)
See Also:
Exception, Serialized Form

Constructor Summary
MCRCatchException(String message)
          Creates a new MCRCatchException with an error message
MCRCatchException(String message, Throwable cause)
          Constructs a new exception with the specified detail message and cause.
 
Method Summary
 String getStackTraceAsString()
          Returns a String containing the invocation stack trace for this exception
 String toString()
          Returns a String representation of this exception and all its properties
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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:
Exception.Exception(java.lang.String, java.lang.Throwable)
Method Detail

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:
MCRException.getStackTraceAsString(Throwable)

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