Package org.cip4.jdflib.core
Class JDFException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cip4.jdflib.core.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 codeJDFException(java.lang.String message, boolean bPrintStack)Deprecated.print the stack trace in the applicationJDFException(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 booleanequals(java.lang.Object obj)equals that includes the value of idintgetID()return a unique identifier of this exception if id was not explicitley set, a hash code is returnedinthashCode()java.lang.StringtoString()toString - StringRepresentation of JDFNode
-
-
-
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 applicationconstructor- 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:
equalsin classjava.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:
hashCodein classjava.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:
toStringin classjava.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
-
-