- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.ibm.jzos.JesVsamException
-
- All Implemented Interfaces:
java.io.Serializable
public class JesVsamException extends java.io.IOExceptionException class used to convey JES exceptions. The category indicates the web service component that produced the error. RC and reason are specific to the category.- Since:
- 2.4.0
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCATEGORY_DYNALLOC_ERRORstatic intCATEGORY_VSAM_ABENDstatic intCATEGORY_VSAM_APIstatic intCATEGORY_VSAM_SYSstatic intVSAM_API_BUF_TOO_SMALLstatic intVSAM_API_MALLOC_ERRORstatic intVSAM_API_STATE_ERRstatic intVSAM_API_STATE_ERR_BAD_RECORD_LENGTHstatic intVSAM_API_STATE_ERR_FILE_NOT_OPENstatic intVSAM_API_STATE_ERR_INVALID_HANDLEstatic intVSAM_API_STATE_ERR_WRITE_ERRORstatic intVSAM_SYS_ERROR_OPENING_NONVSAMstatic intVSAM_SYS_REASON_NOT_AUTHORIZED
-
Constructor Summary
Constructors Constructor Description JesVsamException(int category, int rc, int reason, java.lang.String message)General Constructor for JesExceptions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCategory()Return the category (component) responsible for the exception.intgetRc()The return code.intgetReason()The reason code.voidsetCategory(int category)Set the category (component) responsible for the exception.voidsetRc(int rc)Set the category specific return code.voidsetReason(int reason)Set the category specific reason code.java.lang.StringtoString()Diagnostic string used by logging framework.
-
-
-
Field Detail
-
CATEGORY_DYNALLOC_ERROR
public static final int CATEGORY_DYNALLOC_ERROR
- See Also:
- Constant Field Values
-
CATEGORY_VSAM_API
public static final int CATEGORY_VSAM_API
- See Also:
- Constant Field Values
-
CATEGORY_VSAM_SYS
public static final int CATEGORY_VSAM_SYS
- See Also:
- Constant Field Values
-
CATEGORY_VSAM_ABEND
public static final int CATEGORY_VSAM_ABEND
- See Also:
- Constant Field Values
-
VSAM_API_STATE_ERR
public static final int VSAM_API_STATE_ERR
- See Also:
- Constant Field Values
-
VSAM_API_STATE_ERR_INVALID_HANDLE
public static final int VSAM_API_STATE_ERR_INVALID_HANDLE
- See Also:
- Constant Field Values
-
VSAM_API_STATE_ERR_FILE_NOT_OPEN
public static final int VSAM_API_STATE_ERR_FILE_NOT_OPEN
- See Also:
- Constant Field Values
-
VSAM_API_STATE_ERR_BAD_RECORD_LENGTH
public static final int VSAM_API_STATE_ERR_BAD_RECORD_LENGTH
- See Also:
- Constant Field Values
-
VSAM_API_STATE_ERR_WRITE_ERROR
public static final int VSAM_API_STATE_ERR_WRITE_ERROR
- See Also:
- Constant Field Values
-
VSAM_API_BUF_TOO_SMALL
public static final int VSAM_API_BUF_TOO_SMALL
- See Also:
- Constant Field Values
-
VSAM_API_MALLOC_ERROR
public static final int VSAM_API_MALLOC_ERROR
- See Also:
- Constant Field Values
-
VSAM_SYS_ERROR_OPENING_NONVSAM
public static final int VSAM_SYS_ERROR_OPENING_NONVSAM
- See Also:
- Constant Field Values
-
VSAM_SYS_REASON_NOT_AUTHORIZED
public static final int VSAM_SYS_REASON_NOT_AUTHORIZED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategory
public int getCategory()
Return the category (component) responsible for the exception. One of the CATEGORY_XXXX constants- Returns:
- category
-
setCategory
public void setCategory(int category)
Set the category (component) responsible for the exception.- Parameters:
category- one of the CATEGORY_XXXX constants
-
getRc
public int getRc()
The return code. This value is category specific.
-
setRc
public void setRc(int rc)
Set the category specific return code.- Parameters:
rc-
-
getReason
public int getReason()
The reason code. This value is category specific.
-
setReason
public void setReason(int reason)
Set the category specific reason code.- Parameters:
reason-
-
toString
public java.lang.String toString()
Diagnostic string used by logging framework.- Overrides:
toStringin classjava.lang.Throwable
-
-