public class DESMOJException
extends java.lang.RuntimeException
null
references passed to a method expecting valid parameters.
Note that these exceptions must not be caught by the user and that the user
does not need to re-throw these exceptions, since they all inherit from class
java.exception.RuntimeException
which has the special feature
to be re-thrown automatically by any method.RuntimeException
,
Serialized FormConstructor and Description |
---|
DESMOJException(ErrorMessage message)
Constructs a standard DESMO-J exception with an error message needed to
properly describe what error occurred, where it occurred, what reasons
could be responsible for it and what could be done to prevent this error
from occurring.
|
DESMOJException(ErrorMessage message,
java.lang.Throwable cause)
Constructs a standard DESMO-J exception with an error message needed to
properly describe what error occurred, where it occurred, what reasons
could be responsible for it and what could be done to prevent this error
from occurring.
|
Modifier and Type | Method and Description |
---|---|
ErrorMessage |
getErrorMessage()
Returns the error message describing the circumstances leading to this
exception being thrown.
|
public DESMOJException(ErrorMessage message)
message
- desmoj.report.ErrorMessage : Describes the error leading to
this exceptionpublic DESMOJException(ErrorMessage message, java.lang.Throwable cause)
message
- desmoj.report.ErrorMessage : Describes the error leading to
this exceptioncause
- The exception describing the underlying cause.public ErrorMessage getErrorMessage()