Class EolRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.epsilon.eol.exceptions.EolRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
EclNotApplicableSuperRuleException
,EglRuntimeException
,EolAbortTransactionException
,EolAssertionException
,EolBreakException
,EolContinueException
,EolEnumerationValueNotFoundException
,EolIllegalOperationException
,EolIllegalOperationParametersException
,EolIllegalPropertyAssignmentException
,EolIllegalPropertyException
,EolIllegalReturnException
,EolIllegalVariableAssignmentException
,EolInternalException
,EolInvalidMetaModelException
,EolModelElementTypeNotFoundException
,EolModelNotFoundException
,EolNestedParallelismException
,EolNoReturnException
,EolNotAModelElementException
,EolNotAnEnumerationValueException
,EolNotApplicableOperationException
,EolNotInstantiableModelElementTypeException
,EolNullPointerException
,EolReadOnlyPropertyException
,EolReadOnlyVariableException
,EolRedefinedVariableException
,EolReturnException
,EolRuntimeExceptionReference
,EolTerminationException
,EolTernaryException
,EolTypeNotFoundException
,EolUndefinedVariableException
,EolUserException
,ErlCircularRuleInheritanceException
,ErlRuleNotFoundException
,EUnitParseException
,EvlCircularAssumptionException
,EvlConstraintNotFoundException
,FlockRuntimeException
,IllegalExtensionException
,MatlabRuntimeException
public class EolRuntimeException extends java.lang.Exception
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ModuleElement
ast
protected IEolContext
context
protected java.lang.String
message
protected java.lang.String
reason
-
Constructor Summary
Constructors Constructor Description EolRuntimeException()
EolRuntimeException(java.lang.String reason)
EolRuntimeException(java.lang.String reason, java.lang.Throwable cause)
EolRuntimeException(java.lang.String reason, ModuleElement ast)
EolRuntimeException(java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EolRuntimeException
findCause(java.lang.Throwable runtimeEx)
Traverses the causes of the (usually unchecked) exception to find an EolRuntimeException.ModuleElement
getAst()
int
getColumn()
int
getLine()
java.lang.String
getMessage()
java.lang.String
getReason()
static void
propagate(java.lang.Throwable t)
static void
propagateDetailed(java.lang.Throwable t)
void
setAst(ModuleElement ast)
void
setMessage(java.lang.String message)
void
setReason(java.lang.String reason)
java.lang.String
toString()
static EolRuntimeException
wrap(java.lang.Throwable t)
-
-
-
Field Detail
-
ast
protected ModuleElement ast
-
reason
protected java.lang.String reason
-
message
protected java.lang.String message
-
context
protected IEolContext context
-
-
Constructor Detail
-
EolRuntimeException
public EolRuntimeException()
-
EolRuntimeException
public EolRuntimeException(java.lang.String reason)
-
EolRuntimeException
public EolRuntimeException(java.lang.String reason, ModuleElement ast)
-
EolRuntimeException
public EolRuntimeException(java.lang.Throwable cause)
-
EolRuntimeException
public EolRuntimeException(java.lang.String reason, java.lang.Throwable cause)
-
-
Method Detail
-
getAst
public ModuleElement getAst()
-
setAst
public void setAst(ModuleElement ast)
-
getReason
public java.lang.String getReason()
-
setReason
public void setReason(java.lang.String reason)
-
setMessage
public void setMessage(java.lang.String message)
-
getLine
public int getLine()
-
getColumn
public int getColumn()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
wrap
public static EolRuntimeException wrap(java.lang.Throwable t)
-
propagate
public static void propagate(java.lang.Throwable t) throws EolRuntimeException
- Throws:
EolRuntimeException
-
propagateDetailed
public static void propagateDetailed(java.lang.Throwable t) throws EolRuntimeException
- Throws:
EolRuntimeException
-
findCause
public static EolRuntimeException findCause(java.lang.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.
-
-