|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.webdav.internal.kernel.DAVRuntimeException
public class DAVRuntimeException
Constructor Summary | |
---|---|
DAVRuntimeException(int code,
String message)
Create and answer a new runtime exception with the specified error code and descriptive message. |
|
DAVRuntimeException(String message)
Create and answer a new runtime exception with the given descriptive message. |
|
DAVRuntimeException(Throwable exception)
Create and answer a runtime exception which wraps the given exception. |
|
DAVRuntimeException(Throwable exception,
String message)
Makes the same association between exception argument and error code as DAVRuntimeException(Exception) |
Method Summary | |
---|---|
int |
getErrorCode()
Answer the error code which is set on the receiver. |
Throwable |
getWrappedException()
Answer the receiver's field which holds onto the exception which the receiver wraps. |
void |
printStackTrace()
If the receiver wraps an exception, then ask the exception to print out a stack trace to the system output. |
protected void |
setErrorCode(int errorCode)
Set the receiver's field which holds onto the error code. |
protected void |
setWrappedException(Throwable exception)
Set the receiver's field which holds onto the wrapped exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DAVRuntimeException(int code, String message)
code
- the error code for the exceptionmessage
- a string describing the exceptionpublic DAVRuntimeException(String message)
message
- a string describing the exceptionpublic DAVRuntimeException(Throwable exception)
public DAVRuntimeException(Throwable exception, String message)
DAVRuntimeException(Exception)
exception
- the exception to wrapmessage
- a string describing the exceptionMethod Detail |
---|
public int getErrorCode()
public Throwable getWrappedException()
public void printStackTrace()
printStackTrace
in class Throwable
protected void setErrorCode(int errorCode)
errorCode
- the error code for the exceptionprotected void setWrappedException(Throwable exception)
exception
- the exception to be wrapped
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |