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 ModuleElementastprotected IEolContextcontextprotected Stringmessageprotected Stringreason
-
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 EolRuntimeExceptionfindCause(Throwable runtimeEx)Traverses the causes of the (usually unchecked) exception to find an EolRuntimeException.ModuleElementgetAst()intgetColumn()intgetLine()StringgetMessage()StringgetReason()static voidpropagate(Throwable t)static voidpropagateDetailed(Throwable t)voidsetAst(ModuleElement ast)voidsetMessage(String message)voidsetReason(String reason)StringtoString()static EolRuntimeExceptionwrap(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:
getMessagein 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.
-
-