Package org.mycore.common
Class MCRUsageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mycore.common.MCRException
org.mycore.common.MCRUsageException
- All Implemented Interfaces:
Serializable
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$ $Date$
- Author:
- Frank Lützenkirchen
- See Also:
-
Constructor Summary
ConstructorDescriptionMCRUsageException
(String message) Creates a new MCRUsageException with an error messageMCRUsageException
(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
getStackTraceAsString, getStackTraceAsString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MCRUsageException
Creates a new MCRUsageException with an error message- Parameters:
message
- the error message for this exception
-
MCRUsageException
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 exceptionexception
- the exception that was thrown by an underlying system
-