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 Details

    • GeneratorException

      public GeneratorException()
      Empty default constructor
    • 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 Details

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