Class JDFException

All Implemented Interfaces:
Serializable

public class JDFException extends RuntimeException
See Also:
  • Constructor Details

    • JDFException

      public JDFException(String message)
      constructor the id is calculated as a hash code
      Parameters:
      message - the message to print out
    • JDFException

      public JDFException(String message, int _id)
      constructor if a stack trace is needed use JDFException (String message, boolean bPrintStack)
      Parameters:
      message -
      _id - id of the exception - never use id=0, since this is the flag to use the has code as id
    • JDFException

      @Deprecated public JDFException(String message, boolean bPrintStack)
      Deprecated.
      print the stack trace in the application
      constructor
      Parameters:
      message -
      bPrintStack - print Stacktrace if true
  • Method Details

    • equals

      public boolean equals(Object obj)
      equals that includes the value of id
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      true if obj is the same type of exception
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode that takes id into account
      See Also:
    • toString

      public String toString()
      toString - StringRepresentation of JDFNode
      Overrides:
      toString in class Throwable
      Returns:
      String
    • getID

      public int getID()
      return a unique identifier of this exception if id was not explicitley set, a hash code is returned
      Returns:
      int the id