com.ibm.ims.base
Class IMSException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.ims.base.IMSException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DLIException
- public class IMSException
- extends java.lang.Exception
This exception is thrown to indicate a DLI error has ocurred. These include all errors
which result in a non-blank IMS status code and DLI calls resulting in a non-zero return
code for which there s no PCB (and therefore no status code).
- See Also:
- Serialized Form
Constructor Summary |
IMSException()
Constructor for exceptions. |
IMSException(java.lang.String message)
Constructor for exceptions with a message. |
IMSException(java.lang.String function,
AIB aib,
short statCode,
java.lang.String exceptionType)
Constructor for DLI exceptions. |
Method Summary |
AIB |
getAIB()
Returns the IMS AIB from DLI call which caused this exception. |
java.lang.String |
getFunction()
Returns the IMS function from DLI call which caused this
exception. |
short |
getStatusCode()
Returns the IMS status code from DLI call which caused this
exception. |
java.lang.String |
toString()
|
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 |
IMSException
public IMSException(java.lang.String function,
AIB aib,
short statCode,
java.lang.String exceptionType)
- Constructor for DLI exceptions.
- Parameters:
function
- The DLI function.aib
- AIBstatCode
- The status codeexceptionType
- The exception description message.
IMSException
public IMSException(java.lang.String message)
- Constructor for exceptions with a message.
- Parameters:
message
- The message
IMSException
public IMSException()
- Constructor for exceptions.
getAIB
public AIB getAIB()
- Returns the IMS AIB from DLI call which caused this exception.
- Returns:
- AIB
getFunction
public java.lang.String getFunction()
- Returns the IMS function from DLI call which caused this
exception.
- Returns:
- function
getStatusCode
public short getStatusCode()
- Returns the IMS status code from DLI call which caused this
exception.
- Returns:
- status code
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
(C) International Business Machines Corporation 2004. All rights reserved.