Package com.compomics.util.db
Class GeneratorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.compomics.util.db.GeneratorException
- All Implemented Interfaces:
Serializable
public class GeneratorException extends Exception
This class wraps all exception that can occur while generating code.
- Author:
- Lennart Martens
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description GeneratorException()
Empty default constructorGeneratorException(String aMsg)
This constructor creates an exception with just a message.GeneratorException(String aMsg, Exception aNested)
This constructor creates an exception with a message and a nested exception. -
Method Summary
Modifier and Type Method Description String
getMessage()
This method returns a String with the description for this exception.Exception
getNestedException()
This method returns the nested exception for this exception, or 'null' if none is present.String
toString()
This method returns a String with the description for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
GeneratorException
public GeneratorException()Empty default constructor -
GeneratorException
This constructor creates an exception with just a message.- Parameters:
aMsg
- String with the message for the exception.
-
GeneratorException
This constructor creates an exception with a message and a nested exception.- Parameters:
aMsg
- String with the message for the exception.aNested
- Exception that is nested within this exception.
-
-
Method Details
-
toString
This method returns a String with the description for this exception. -
getMessage
This method returns a String with the description for this exception.- Overrides:
getMessage
in classThrowable
- Returns:
- a string representation of this exception.
-
getNestedException
This method returns the nested exception for this exception, or 'null' if none is present.- Returns:
- Exception with the nested exception in this exception, or 'null' if none is present.
-