|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.compatibility.base.exception.Assertions
public class Assertions
| Method Summary | |
|---|---|
static void |
assertAtErrorLevel(boolean assertion,
String description)
Deprecated. without replacement |
static void |
assertAtExceptionLevel(boolean assertion,
String description)
Deprecated. without replacement |
static Error |
toError(Throwable throwable)
Deprecated. without replacement |
static Error |
toError(Throwable throwable,
String description)
Deprecated. without replacement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void assertAtErrorLevel(boolean assertion,
String description)
assertion - the condition expected to be true.description - description of the assertion;
or null
ServiceError - if assertion is false
public static void assertAtExceptionLevel(boolean assertion,
String description)
assertion - the condition expected to be true.description - description of the assertion;
or null
RuntimeServiceException - if assertion is falsepublic static Error toError(Throwable throwable)
Usage:
public methodName (ParameterClass parameterValue) {
try {
...
} catch (Throwable throwable) {
// This statement is expected never to be reached
throw Assertions.toError (exception);
}
}
throwable - the unexpected exception
public static Error toError(Throwable throwable,
String description)
throwable - the unexpected exceptiondomain - the exception domainerrorCode - the error codedescription - a description of the error situation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||