Class EolRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.epsilon.eol.exceptions.EolRuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EclNotApplicableSuperRuleException
,EglRuntimeException
,EolAbortTransactionException
,EolAssertionException
,EolEnumerationValueNotFoundException
,EolIllegalOperationException
,EolIllegalOperationParametersException
,EolIllegalPropertyAssignmentException
,EolIllegalPropertyException
,EolIllegalReturnException
,EolIllegalVariableAssignmentException
,EolInternalException
,EolInvalidMetaModelException
,EolModelElementTypeNotFoundException
,EolModelNotFoundException
,EolNestedParallelismException
,EolNoReturnException
,EolNotAModelElementException
,EolNotAnEnumerationValueException
,EolNotApplicableOperationException
,EolNotInstantiableModelElementTypeException
,EolNullPointerException
,EolReadOnlyPropertyException
,EolReadOnlyVariableException
,EolRedefinedVariableException
,EolRuntimeExceptionReference
,EolTerminationException
,EolTernaryException
,EolTypeNotFoundException
,EolUndefinedVariableException
,EolUserException
,ErlCircularRuleInheritanceException
,ErlRuleNotFoundException
,EUnitParseException
,EvlCircularAssumptionException
,EvlConstraintNotFoundException
,FlockRuntimeException
,IllegalExtensionException
,MatlabRuntimeException
public class EolRuntimeException extends Exception
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ModuleElement
ast
protected IEolContext
context
protected String
message
protected String
reason
-
Constructor Summary
Constructors Constructor Description EolRuntimeException()
EolRuntimeException(String reason)
EolRuntimeException(String reason, Throwable cause)
EolRuntimeException(String reason, ModuleElement ast)
EolRuntimeException(Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EolRuntimeException
findCause(Throwable runtimeEx)
Traverses the causes of the (usually unchecked) exception to find an EolRuntimeException.ModuleElement
getAst()
int
getColumn()
int
getLine()
String
getMessage()
String
getReason()
static void
propagate(Throwable t)
static void
propagateDetailed(Throwable t)
void
setAst(ModuleElement ast)
void
setMessage(String message)
void
setReason(String reason)
String
toString()
static EolRuntimeException
wrap(Throwable t)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
ast
protected ModuleElement ast
-
reason
protected String reason
-
message
protected String message
-
context
protected IEolContext context
-
-
Constructor Detail
-
EolRuntimeException
public EolRuntimeException()
-
EolRuntimeException
public EolRuntimeException(String reason)
-
EolRuntimeException
public EolRuntimeException(String reason, ModuleElement ast)
-
EolRuntimeException
public EolRuntimeException(Throwable cause)
-
-
Method Detail
-
getAst
public ModuleElement getAst()
-
setAst
public void setAst(ModuleElement ast)
-
getReason
public String getReason()
-
setReason
public void setReason(String reason)
-
setMessage
public void setMessage(String message)
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
wrap
public static EolRuntimeException wrap(Throwable t)
-
propagate
public static void propagate(Throwable t) throws EolRuntimeException
- Throws:
EolRuntimeException
-
propagateDetailed
public static void propagateDetailed(Throwable t) throws EolRuntimeException
- Throws:
EolRuntimeException
-
findCause
public static EolRuntimeException findCause(Throwable runtimeEx)
Traverses the causes of the (usually unchecked) exception to find an EolRuntimeException. If not found, it will wrap the root cause into an instance of EolRuntimeException. This method accounts for any depth of cyclic causes, so it is guaranteed to terminate; unless there is a StackOverflowError.
-
-