Package net.hydromatic.morel.eval
Class Codes.MorelRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.hydromatic.morel.eval.Codes.MorelRuntimeException
-
- All Implemented Interfaces:
Serializable,MorelException
- Enclosing class:
- Codes
public static class Codes.MorelRuntimeException extends RuntimeException implements MorelException
Java exception that wraps an exception thrown by the Morel runtime.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Codes.BuiltInExneprivate Pospos
-
Constructor Summary
Constructors Constructor Description MorelRuntimeException(Codes.BuiltInExn e, Pos pos)Creates a MorelRuntimeException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilderdescribeTo(StringBuilder buf)Writes a description of this exception.Pospos()Returns the position.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
e
private final Codes.BuiltInExn e
-
pos
private final Pos pos
-
-
Constructor Detail
-
MorelRuntimeException
public MorelRuntimeException(Codes.BuiltInExn e, Pos pos)
Creates a MorelRuntimeException.
-
-
Method Detail
-
describeTo
public StringBuilder describeTo(StringBuilder buf)
Description copied from interface:MorelExceptionWrites a description of this exception.- Specified by:
describeToin interfaceMorelException
-
pos
public Pos pos()
Description copied from interface:MorelExceptionReturns the position.- Specified by:
posin interfaceMorelException
-
-