|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mycore.common.MCRException
public class MCRException
Instances of this class represent a general exception thrown by any part of the MyCoRe implementation classes.
RuntimeException,
Serialized Form| Field Summary | |
|---|---|
protected Exception |
exception
the embedded exception that was thrown by an underlying system |
| Constructor Summary | |
|---|---|
MCRException(String message)
Creates a new MCRException with an error message |
|
MCRException(String message,
Exception exception)
Creates a new MCRException with an error message and a reference to an exception thrown by an underlying system. |
|
| Method Summary | |
|---|---|
Exception |
getException()
Returns the exception thrown by an underlying system |
String |
getStackTraceAsString()
Returns a String containing the invocation stack trace for this exception |
static String |
getStackTraceAsString(Throwable ex)
Returns a String containing the invocation stack trace of an 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 |
| Field Detail |
|---|
protected Exception exception
| Constructor Detail |
|---|
public MCRException(String message)
message - the error message for this exception
public MCRException(String message,
Exception exception)
message - the error message for this exceptionexception - the exception that was thrown by an underlying system| Method Detail |
|---|
public Exception getException()
public String getStackTraceAsString()
public static String getStackTraceAsString(Throwable ex)
ex - the exception you want the stack trace of
public String toString()
toString in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||