java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.itemis.jscdlib.problem.JScdException
- All Implemented Interfaces:
Serializable
An (unchecked) RuntimeException that is thrown by many of JScdLib's methods. Instances of
this class usually hold a meaningful error message and a JScdProblem object with further
error information.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMessage ofDEFAULT_PROBLEM.static final JScdProblemIf no otherproblemapplies, use this. -
Constructor Summary
ConstructorsConstructorDescriptionUsesDEFAULT_PROBLEMandDEFAULT_MESSAGE.JScdException(JScdProblem problem) Construct an exception out ofproblemandproblem'smessage.JScdException(JScdProblem problem, String appendix) JScdException(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DEFAULT_PROBLEM
If no otherproblemapplies, use this. -
DEFAULT_MESSAGE
Message ofDEFAULT_PROBLEM.
-
-
Constructor Details
-
JScdException
public JScdException()UsesDEFAULT_PROBLEMandDEFAULT_MESSAGE. -
JScdException
- Parameters:
cause-
-
JScdException
Construct an exception out ofproblemandproblem'smessage.- Parameters:
problem-
-
JScdException
- Parameters:
problem-appendix-
-
-
Method Details
-
problem
- Returns:
- The problem encapsulated by this exception.
-