Package ch.grengine.except
Class CompileException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.grengine.except.GrengineException
ch.grengine.except.CompileException
- All Implemented Interfaces:
Serializable
Exception thrown when (Groovy script) compilation failed.
- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompileException(String message, Sources sources) constructor from exception message and sources for which compilation failed.CompileException(String message, Throwable cause, Sources sources) constructor from exception message, causing throwable and sources for which compilation failed. -
Method Summary
Modifier and TypeMethodDescriptiongets sources for which compilation failed; null after exception deserialization.gets the sources for which compilation failed - converted to a string; survives exception deserialization.Methods inherited from class ch.grengine.except.GrengineException
getDateThrown, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CompileException
constructor from exception message and sources for which compilation failed.- Parameters:
message- messagesources- sources for which compilation failed- Since:
- 1.0
-
CompileException
constructor from exception message, causing throwable and sources for which compilation failed.- Parameters:
message- messagecause- causesources- sources for which compilation failed- Since:
- 1.0
-
-
Method Details
-
getSources
gets sources for which compilation failed; null after exception deserialization.- Returns:
- sources for which compilation failed, or null if the exception was deserialized
- Since:
- 1.0
-
getSourcesAsString
gets the sources for which compilation failed - converted to a string; survives exception deserialization.- Returns:
- sources for which compilation failed converted to a string, or empty string if sources were null
- Since:
- 3.2.0
-