com.ibm.ims.base
Class DLIException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.ims.base.IMSException
|
+--com.ibm.ims.base.DLIException
- All Implemented Interfaces:
- java.io.Serializable
- public class DLIException
- extends IMSException
Thrown to indicate an error has occurred. These include all errors that occur in the
Java space, not those that occur while processing an IMS/DLI call and are propagated
back.
- See Also:
- Serialized Form
Constructor Summary |
DLIException(java.lang.String message)
Creates an exception with the specified error message. |
DLIException(java.lang.String message,
int code)
Creates an exception with the specified error message and internal error code. |
Method Summary |
int |
getErrorCode()
Returns the internal error code. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DLIException
public DLIException(java.lang.String message)
- Creates an exception with the specified error message. The internal error code
defaults to zero.
- Parameters:
message
- the error message
DLIException
public DLIException(java.lang.String message,
int code)
- Creates an exception with the specified error message and internal error code.
- Parameters:
message
- the error messagecode
- the internal error code
getErrorCode
public int getErrorCode()
- Returns the internal error code. If there is no internal error code, 0 is returned.
(C) International Business Machines Corporation 2004. All rights reserved.