org.cantaloop.cgimlet
Class CodeGenerationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.cantaloop.cgimlet.CodeGenerationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CompileException
- public class CodeGenerationException
- extends java.lang.RuntimeException
This exception is thrown when an unrecoverable exception
occurs during the codegeneration.
- Version:
- 0.2.0 ($Revision: 1.5 $)
- Author:
- Stefan Heimann
- See Also:
- Serialized Form
Method Summary |
java.lang.Throwable |
getNestedException()
Returns the exception that has caused the
CodeGenerationException . |
java.lang.String |
toString()
Returns a string representation of the exception, including
the error message of the nested exception (if available). |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CodeGenerationException
public CodeGenerationException()
CodeGenerationException
public CodeGenerationException(java.lang.String msg)
- Creates a new
CodeGenerationException
instance.
- Parameters:
msg
- the error message.
CodeGenerationException
public CodeGenerationException(java.lang.String msg,
java.lang.Throwable e)
- Creates a new
CodeGenerationException
instance.
- Parameters:
msg
- the error message.e
- the exception that has caused the CodeGenerationException
.
getNestedException
public java.lang.Throwable getNestedException()
- Returns the exception that has caused the
CodeGenerationException
.
- Returns:
- a
Throwable
value
toString
public java.lang.String toString()
- Returns a string representation of the exception, including
the error message of the nested exception (if available).
- Overrides:
toString
in class java.lang.Throwable
- Returns:
- a
String
value