|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.w3c.ddr.simple.exception.DDRException
public class DDRException
Represents a DDR Exception.
Field Summary | |
---|---|
protected int |
code
An exception code, which represents the nature/cause of the exception. |
static int |
IMPLEMENTATION_ERROR
Implementation specific error codes must be greater than this |
Constructor Summary | |
---|---|
DDRException()
Constructs a DDRException instance with an undefined exception code. |
|
DDRException(int code,
java.lang.String message)
Constructs a DDRException instance with a code and human-readable message. |
|
DDRException(int code,
java.lang.Throwable thr)
Constructs a DDRException instance with a code and Throwable object that may indicate further details of the cause of the exception. |
Method Summary | |
---|---|
int |
getCode()
Retrieves the exception code, which determines the nature/cause of the exception. |
java.lang.String |
getMessage()
Retrieves a human-readable diagnostic message, intended for error messages. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int IMPLEMENTATION_ERROR
protected int code
Constructor Detail |
---|
public DDRException()
public DDRException(int code, java.lang.String message)
code
- This should be a constant from this exception class.message
- Diagnostic message intended for human reading.public DDRException(int code, java.lang.Throwable thr)
code
- This should be a constant from this exception class.thr
- A Throwable object that may contain further details on the exception.Method Detail |
---|
public int getCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |