|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.ibm.jzos.ZFileException
public class ZFileException
A customized IOException to carry detailed native file error information. If errno was non-zero, the result of strerror(errno) is available in errnoMsg.
The following codes are available from the C++ library __amrc.__code structure if errno is non-zero. Refer to the z/OS C++ Programming Guide "Debugging IO Programs" for information on when these codes apply and how to interpret these codes.
Constructor Summary | |
---|---|
ZFileException(java.lang.String fileName,
java.lang.String msg,
int errno)
Construct a ZFileException. |
|
ZFileException(java.lang.String fileName,
java.lang.String msg,
java.lang.String errnoMsg,
int errno,
int errno2,
int lastOp,
byte[] amrc_code_bytes)
Construct a ZFileException. |
Method Summary | |
---|---|
int |
getAbendCode()
|
int |
getAbendRc()
|
int |
getAllocSvc99Error()
|
int |
getAllocSvc99Info()
|
int |
getErrno()
|
int |
getErrno2()
|
java.lang.String |
getErrnoMsg()
|
int |
getErrorCode()
|
int |
getFeedbackFdbk()
|
int |
getFeedbackFtncd()
|
int |
getFeedbackRc()
|
java.lang.String |
getFileName()
|
int |
getLastOp()
|
java.lang.String |
getMessage()
Get a message string to decribe the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ZFileException(java.lang.String fileName, java.lang.String msg, java.lang.String errnoMsg, int errno, int errno2, int lastOp, byte[] amrc_code_bytes)
fileName
- the name of the file opened by ZFilemsg
- the message from the point where the error occurrederrnoMsg
- the C library strerror(errno) messageerrno
- the C library errnoerrno2
- the C library errno2lastOp
- the C library __amrc.__last_op valueamrc_code_bytes
- the C library __amrc.__code structure bytespublic ZFileException(java.lang.String fileName, java.lang.String msg, int errno)
fileName
- the name of the file opened by ZFilemsg
- the message from the point where the error occurrederrno
- the C library errnoMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public int getErrno()
public int getErrno2()
public java.lang.String getErrnoMsg()
public int getErrorCode()
public int getAbendCode()
public int getAbendRc()
public int getFeedbackRc()
public int getFeedbackFtncd()
public int getFeedbackFdbk()
public int getAllocSvc99Info()
public int getAllocSvc99Error()
public java.lang.String getFileName()
public int getLastOp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |