Package net.hydromatic.morel.compile
Class CompileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.hydromatic.morel.compile.CompileException
-
- All Implemented Interfaces:
Serializable,MorelException
- Direct Known Subclasses:
TypeResolver.TypeException
public class CompileException extends RuntimeException implements MorelException
An error occurred during compilation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompileException(String message, boolean warning, Pos pos)
-
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
-
warning
private final boolean warning
-
pos
private final Pos pos
-
-
Method Detail
-
pos
public Pos pos()
Description copied from interface:MorelExceptionReturns the position.- Specified by:
posin interfaceMorelException
-
describeTo
public StringBuilder describeTo(StringBuilder buf)
Description copied from interface:MorelExceptionWrites a description of this exception.- Specified by:
describeToin interfaceMorelException
-
-