public class ZLogstreamException
extends java.io.IOException
Constructor and Description |
---|
ZLogstreamException(java.lang.String msg,
java.lang.String logstreamName,
int returnCode,
int reasonCode)
Construct a ZLogstreamException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLogstreamName() |
java.lang.String |
getMessage()
Get a message string to describe the exception.
|
int |
getReasonCode() |
int |
getReturnCode() |
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.
|
boolean |
isEndReached()
Answers true if RC=8/0x0807, which occurs
when you browse and there are no more records found.
|
boolean |
isStagingDatasetFull()
Answers true if RC=8/0x0865, which occurs
if the staging dataset is full, which can be temporary.
|
boolean |
isStagingFormattingNotFinished()
Answers true if RC=8/0x0868, which occurs
the first time to try to write to a logger.
|
boolean |
isStreamEmpty()
Answers true if RC=8/0x0846, which occurs
when you browseStart and the stream is empty.
|
boolean |
isTokenInvalidError()
Answers true if RC=8/0x082D, which occurs
if the thread that connected to the logstream terminates.
|
void |
setLogstreamName(java.lang.String name)
Sets the logstreamName
|
public ZLogstreamException(java.lang.String msg, java.lang.String logstreamName, int returnCode, int reasonCode)
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 servicepublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLogstreamName()
public void setLogstreamName(java.lang.String name)
public int getReturnCode()
public int getReasonCode()
public boolean isTokenInvalidError()
public boolean isStagingFormattingNotFinished()
public boolean isStagingDatasetFull()
public boolean isStreamEmpty()
ZLogstream.readCursor(byte[], int, boolean)
.public boolean isEndReached()
ZLogstream.readCursor(byte[], int, boolean)
.public boolean isBlockNotFound()