com.compomics.util.db
Class GeneratorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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
GeneratorException(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
 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
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratorException

public GeneratorException(String aMsg)
This constructor creates an exception with just a message.

Parameters:
aMsg - String with the message for the exception.

GeneratorException

public GeneratorException(String aMsg,
                          Exception aNested)
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 Detail

toString

public String toString()
This method returns a String with the description for this exception.

Overrides:
toString in class Throwable
Returns:
a string representation of this exception.

getMessage

public String getMessage()
This method returns a String with the description for this exception.

Overrides:
getMessage in class Throwable
Returns:
a string representation of this exception.

getNestedException

public 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.


Copyright © 2011. All Rights Reserved.