Class JDFException

  • All Implemented Interfaces:
    java.io.Serializable

    public class JDFException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JDFException​(java.lang.String message)
      constructor the id is calculated as a hash code
      JDFException​(java.lang.String message, boolean bPrintStack)
      Deprecated.
      print the stack trace in the application
      JDFException​(java.lang.String message, int _id)
      constructor if a stack trace is needed use JDFException (String message, boolean bPrintStack)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      equals that includes the value of id
      int getID()
      return a unique identifier of this exception if id was not explicitley set, a hash code is returned
      int hashCode()  
      java.lang.String toString()
      toString - StringRepresentation of JDFNode
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JDFException

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

        public JDFException​(java.lang.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​(java.lang.String message,
                            boolean bPrintStack)
        Deprecated.
        print the stack trace in the application
        constructor
        Parameters:
        message -
        bPrintStack - print Stacktrace if true
    • Method Detail

      • equals

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

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

        public java.lang.String toString()
        toString - StringRepresentation of JDFNode
        Overrides:
        toString in class java.lang.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