Class ExceptionMessage
java.lang.Object
org.codehaus.groovy.control.messages.Message
org.codehaus.groovy.control.messages.ExceptionMessage
A class for error messages produced by the parser system.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanIndicates whether debug output is enabled for this message.protected final ProcessingUnitProcessing unit that reported the exception. -
Constructor Summary
ConstructorsConstructorDescriptionExceptionMessage(Exception cause, boolean debug, ProcessingUnit owner) Creates an exception-backed compilation message. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Returns the underlying Exception.voidwrite(PrintWriter output, Janitor janitor) Writes out a nicely formatted summary of the exception.
-
Field Details
-
debug
protected final boolean debugIndicates whether debug output is enabled for this message. -
owner
Processing unit that reported the exception.
-
-
Constructor Details
-
ExceptionMessage
Creates an exception-backed compilation message.- Parameters:
cause- the underlying exceptiondebug- whether debug output is enabledowner- the owning processing unit
-
-
Method Details