Package ch.grengine.except
Class GrengineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.grengine.except.GrengineException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClassNameConflictException,CompileException,CreateException,LoadException
General Grengine exception.
- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGrengineException(String message) constructor from exception message.GrengineException(String message, Throwable cause) constructor from exception message and causing throwable. -
Method Summary
Modifier and TypeMethodDescriptiongets the date (with time) when the exception was thrown.gets the exception message given in the constructor, with the exception message of the causing throwable appended, if there was one.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GrengineException
constructor from exception message.- Parameters:
message- message- Since:
- 1.0
-
GrengineException
constructor from exception message and causing throwable.- Parameters:
message- messagecause- cause- Since:
- 1.0
-
-
Method Details
-
getMessage
gets the exception message given in the constructor, with the exception message of the causing throwable appended, if there was one.- Overrides:
getMessagein classThrowable- Returns:
- message
- Since:
- 1.0
-
getDateThrown
gets the date (with time) when the exception was thrown.- Returns:
- date (with time) when the exception was thrown
- Since:
- 1.0
-