org.mycore.common
Class MCRPersistenceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.mycore.common.MCRException
                  extended by org.mycore.common.MCRPersistenceException
All Implemented Interfaces:
Serializable

public class MCRPersistenceException
extends MCRException

Instances of this class represent a general exception thrown by the persistency layer of the MyCoRe implementation. This will be the case when the datastore reports an error, for example.

Version:
$Revision: 13085 $ $Date: 2008-02-06 18:27:24 +0100 (Mi, 06 Feb 2008) $
Author:
Jens Kupferschmidt, Frank Lützenkirchen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mycore.common.MCRException
exception
 
Constructor Summary
MCRPersistenceException(String message)
          Creates a new MCRPersistenceException with an error message
MCRPersistenceException(String message, Exception exception)
          Creates a new MCRPersistenceException with an error message and a reference to an exception thrown by an underlying system.
 
Method Summary
 
Methods inherited from class org.mycore.common.MCRException
getException, getStackTraceAsString, getStackTraceAsString, toString
 
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

MCRPersistenceException

public MCRPersistenceException(String message)
Creates a new MCRPersistenceException with an error message

Parameters:
message - the error message for this exception

MCRPersistenceException

public MCRPersistenceException(String message,
                               Exception exception)
Creates a new MCRPersistenceException with an error message and a reference to an exception thrown by an underlying system.

Parameters:
message - the error message for this exception
exception - the exception that was thrown by an underlying system