public class JesVsamException
extends java.io.IOException
Modifier and Type | Field and Description |
---|---|
static int |
CATEGORY_DYNALLOC_ERROR |
static int |
CATEGORY_VSAM_ABEND |
static int |
CATEGORY_VSAM_API |
static int |
CATEGORY_VSAM_SYS |
static int |
VSAM_API_BUF_TOO_SMALL |
static int |
VSAM_API_MALLOC_ERROR |
static int |
VSAM_API_STATE_ERR |
static int |
VSAM_API_STATE_ERR_BAD_RECORD_LENGTH |
static int |
VSAM_API_STATE_ERR_FILE_NOT_OPEN |
static int |
VSAM_API_STATE_ERR_INVALID_HANDLE |
static int |
VSAM_API_STATE_ERR_WRITE_ERROR |
static int |
VSAM_SYS_ERROR_OPENING_NONVSAM |
static int |
VSAM_SYS_REASON_NOT_AUTHORIZED |
Constructor and Description |
---|
JesVsamException(int category,
int rc,
int reason,
java.lang.String message)
General Constructor for JesExceptions
|
Modifier and Type | Method and Description |
---|---|
int |
getCategory()
Return the category (component) responsible for the exception.
|
int |
getRc()
The return code.
|
int |
getReason()
The reason code.
|
void |
setCategory(int category)
Set the category (component) responsible for the exception.
|
void |
setRc(int rc)
Set the category specific return code.
|
void |
setReason(int reason)
Set the category specific reason code.
|
java.lang.String |
toString()
Diagnostic string used by logging framework.
|
public static final int CATEGORY_DYNALLOC_ERROR
public static final int CATEGORY_VSAM_API
public static final int CATEGORY_VSAM_SYS
public static final int CATEGORY_VSAM_ABEND
public static final int VSAM_API_STATE_ERR
public static final int VSAM_API_STATE_ERR_INVALID_HANDLE
public static final int VSAM_API_STATE_ERR_FILE_NOT_OPEN
public static final int VSAM_API_STATE_ERR_BAD_RECORD_LENGTH
public static final int VSAM_API_STATE_ERR_WRITE_ERROR
public static final int VSAM_API_BUF_TOO_SMALL
public static final int VSAM_API_MALLOC_ERROR
public static final int VSAM_SYS_ERROR_OPENING_NONVSAM
public static final int VSAM_SYS_REASON_NOT_AUTHORIZED
public JesVsamException(int category, int rc, int reason, java.lang.String message)
category
- one of the CATEGORY_XXXX constantsrc
- return codereason
- reason codemessage
- descriptive messagepublic int getCategory()
public void setCategory(int category)
category
- one of the CATEGORY_XXXX constantspublic int getRc()
public void setRc(int rc)
rc
- public int getReason()
public void setReason(int reason)
reason
- public java.lang.String toString()
toString
in class java.lang.Throwable