com.waveset.util
Class ProcessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.waveset.util.ProcessException
- All Implemented Interfaces:
- java.io.Serializable
- public class ProcessException
- extends java.lang.RuntimeException
- See Also:
- Serialized Form
Constructor Summary |
ProcessException(int err)
Constructs a new runtime exception with null as its detail
message. |
ProcessException(java.lang.Throwable cause)
Constructs a new runtime exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause). |
Method Summary |
int |
getError()
Returns the error code set in the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ERR_NONE
public static final int ERR_NONE
- See Also:
- Constant Field Values
ERR_IO
public static final int ERR_IO
- See Also:
- Constant Field Values
ERR_ACCESS
public static final int ERR_ACCESS
- See Also:
- Constant Field Values
ERR_INVALID
public static final int ERR_INVALID
- See Also:
- Constant Field Values
ERR_INVALID_PWD
public static final int ERR_INVALID_PWD
- See Also:
- Constant Field Values
ERR_DISABLED_USR
public static final int ERR_DISABLED_USR
- See Also:
- Constant Field Values
ProcessException
public ProcessException(int err)
- Constructs a new runtime exception with
null
as its detail
message. The cause is not initialized, and may subsequently be
initialized by a call to Throwable.initCause(java.lang.Throwable)
.
ProcessException
public ProcessException(java.lang.Throwable cause)
- Constructs a new runtime exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause).
This constructor is useful for runtime exceptions that are little more
than wrappers for other throwables.
- Parameters:
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is permitted, and
indicates that the cause is nonexistent or unknown.)- Since:
- 1.4
getError
public int getError()
- Returns the error code set in the exception.