java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.ibm.jzos.ZLogstreamException
- All Implemented Interfaces:
Serializable
A customized IOException to carry return codes for ZLogstream errors.
- Since:
- 2.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionZLogstreamException(String msg, String logstreamName, int returnCode, int reasonCode) Construct a ZLogstreamException. -
Method Summary
Modifier and TypeMethodDescriptionGet a message string to describe the exception.intintbooleanAnswers true if RC=8/0x0804, which occurs when you try to reference a block by blockid or search by timestamp and a matching block is not found.booleanAnswers true if RC=8/0x0807, which occurs when you browse and there are no more records found.booleanAnswers true if RC=8/0x0865, which occurs if the staging dataset is full, which can be temporary.booleanAnswers true if RC=8/0x0868, which occurs the first time to try to write to a logger.booleanAnswers true if RC=8/0x0846, which occurs when you browseStart and the stream is empty.booleanAnswers true if RC=8/0x082D, which occurs if the thread that connected to the logstream terminates.voidsetLogstreamName(String name) Sets the logstreamNameMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ZLogstreamException
Construct a ZLogstreamException.- Parameters:
msg- the message from the point where the error occurredlogstreamName- the name of the logstreamreturnCode- the return code from the IXGXXX macro servicereasonCode- the reason code from the IXGXXX macro service
-
-
Method Details
-
getMessage
Get a message string to describe the exception. This includes the original source message from the detecting routine, as well as errno, errno2, and last_op if errno is not 0.- Overrides:
getMessagein classThrowable
-
getLogstreamName
- Returns:
- String - the name of the logstream
-
setLogstreamName
Sets the logstreamName -
getReturnCode
public int getReturnCode()- Returns:
- int - the value of the IXGXXX return code
-
getReasonCode
public int getReasonCode()- Returns:
- int - the value of the IXGXXX reason code
-
isTokenInvalidError
public boolean isTokenInvalidError()Answers true if RC=8/0x082D, which occurs if the thread that connected to the logstream terminates. -
isStagingFormattingNotFinished
public boolean isStagingFormattingNotFinished()Answers true if RC=8/0x0868, which occurs the first time to try to write to a logger. -
isStagingDatasetFull
public boolean isStagingDatasetFull()Answers true if RC=8/0x0865, which occurs if the staging dataset is full, which can be temporary. -
isStreamEmpty
public boolean isStreamEmpty()Answers true if RC=8/0x0846, which occurs when you browseStart and the stream is empty. This exception is automatically caught inZLogstream.readCursor(byte[], int, boolean).- Since:
- 2.4.0
-
isEndReached
public boolean isEndReached()Answers true if RC=8/0x0807, which occurs when you browse and there are no more records found. This exception is automatically caught inZLogstream.readCursor(byte[], int, boolean).- Since:
- 2.4.0
-
isBlockNotFound
public boolean isBlockNotFound()Answers true if RC=8/0x0804, which occurs when you try to reference a block by blockid or search by timestamp and a matching block is not found.- Since:
- 2.4.0
-