org.mycore.common
Class MCRUsageException

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.MCRUsageException
All Implemented Interfaces:
Serializable

public class MCRUsageException
extends MCRException

Instances of MCRUsageException are thrown when the MyCoRe API is used in an illegal way. For example, this could happen when you provide illegal arguments to a method.

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

Field Summary
 
Fields inherited from class org.mycore.common.MCRException
exception
 
Constructor Summary
MCRUsageException(String message)
          Creates a new MCRUsageException with an error message
MCRUsageException(String message, Exception exception)
          Creates a new MCRUsageException 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

MCRUsageException

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

Parameters:
message - the error message for this exception

MCRUsageException

public MCRUsageException(String message,
                         Exception exception)
Creates a new MCRUsageException 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