|
|||||||||
| 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
|
+--javax.datamining.JDMException
The class JDMException extends java.lang.Exception
to indicate conditions that a reasonable application might want to catch.
It has subclasses to provide more sophisticated exception handling.
JDM API throws only JDMException to support applications with
varying degree of exception handling.
The subclasses of JDMException includes the following.
Note that JDM also supports two runtime exceptions.
The class JDMUnsupportedFeatureException extends
java.lang.UnsupportedOperationException, and
JDMIllegalArgumentException inherits from
java.lang.IllegalArgumentException.
The error codes are divided into two categories: errors for checked exceptions
(i.e., JDMException and its subclasses) and erros for runtime
exceptions (i.e., JDMUnsupportedFeatureException and
JDMIllegalArgumentException).
The error codes for checked exceptions range between 1000 and 1499, and the
ones for runetime exceptions between 1500 and 1999. Error codes between 0 and 999
are reserved for JDM and error codes between 2000 and 9999 are reserved for
vendor extension.
Refer to JDMErrorCodes for error codes.
JDMErrorCodes,
Exception,
Serialized Form| Field Summary |
| Constructor Summary | |
JDMException()
Creates an instance of JDMException. |
|
JDMException(int errorCode,
java.lang.String errorMessage)
Creates an instance of JDMException with the specified message
and error code. |
|
JDMException(int errorCode,
java.lang.String errorMessage,
int vendorCode,
java.lang.String vendorMessage)
Creates an instance of JDMException with the specified message
and error code together with the vendor specific error code and message. |
|
| Method Summary | |
int |
getErrorCode()
Returns the JDM error code of this exception. |
int |
getVendorErrorCode()
Returns the vendor-specific error code of the exception. |
java.lang.String |
getVendorErrorMessage()
Returns the vendor-specific error message of 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JDMException()
JDMException.
The error message defaults to null and the error code to JDM_GENERIC_ERROR.
public JDMException(int errorCode,
java.lang.String errorMessage)
JDMException with the specified message
and error code.
errorCode - An integer to indicate the cause of the exceptionerrorMessage - A message that describes the exception
public JDMException(int errorCode,
java.lang.String errorMessage,
int vendorCode,
java.lang.String vendorMessage)
JDMException with the specified message
and error code together with the vendor specific error code and message.
errorCode - An integer to indicate the cause of the exceptionerrorMessage - A message that describes the exceptionvendorCode - A vendor specific number to indicate the cause of the exceptionvendorMessage - A vendor specific message that describes the exception| Method Detail |
public int getErrorCode()
public int getVendorErrorCode()
public java.lang.String getVendorErrorMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||