|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.w3c.ddr.simple.exception.DDRException
public class DDRException
Represents a DDR Exception.
| Field Summary | |
|---|---|
protected int |
code
|
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,
String message)
Constructs a DDRException instance with a code and human-readable message. |
|
DDRException(int code,
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. |
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,
String message)
code - This should be a constant from this exception class.message - Diagnostic message intended for human reading.
public DDRException(int code,
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 String getMessage()
getMessage in class Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||