|
||||||||||
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.eclipse.ocl.EvaluationHaltedException
public class EvaluationHaltedException
Exception indicating a managed interruption of evaluation.
Other languages that extend OCL may need to stop evaluation at any point. This can be done at expression level granularity by throwing this exception during evaluation. The evaluation visitor and other participants recognizes this exception as a protocol for interrupting its execution and ensure its propagated to the top level caller.
A diagnostic object can be attached, so arbitrary information about the current execution context can be carried.
Constructor Summary | |
---|---|
EvaluationHaltedException(java.lang.String message)
Initializes me with a message describing the nature of stopping evaluation. |
|
EvaluationHaltedException(java.lang.String message,
java.lang.Throwable cause)
Initializes me with a message and diagnostic describing the nature of stopping evaluation. |
Method Summary | |
---|---|
Diagnostic |
getDiagnostic()
Obtains the diagnostic providing further information about this exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EvaluationHaltedException(java.lang.String message)
message
- the message textpublic EvaluationHaltedException(java.lang.String message, java.lang.Throwable cause)
message
- a user-friendly messagecause
- the cause of the evaluation failureMethod Detail |
---|
public Diagnostic getDiagnostic()
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |