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