public class StreamReadException extends FrameworkException
The stream reading exception. Caused when stream reading failed due to incorrect offset and bytes count request.
Constructor and Description |
---|
StreamReadException(String message)
Initializes a new instance of the
StreamReadException class. |
StreamReadException(String message,
int expectedReadCount,
int actualReadCount)
Initializes a new instance of the
StreamReadException class. |
StreamReadException(String message,
Throwable innerException)
Initializes a new instance of the
StreamReadException class. |
StreamReadException(String message,
Throwable innerException,
int expectedReadCount,
int actualReadCount)
Initializes a new instance of the
StreamReadException class. |
Modifier and Type | Method and Description |
---|---|
int |
getActualReadCount()
Gets the actual read bytes count.
|
int |
getExpectedReadCount()
Gets the expected read bytes count.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public StreamReadException(String message)
Initializes a new instance of the StreamReadException
class.
message
- The message.public StreamReadException(String message, Throwable innerException)
Initializes a new instance of the StreamReadException
class.
message
- The message.innerException
- The inner exception.public StreamReadException(String message, Throwable innerException, int expectedReadCount, int actualReadCount)
Initializes a new instance of the StreamReadException
class.
message
- The message.innerException
- The inner exception.expectedReadCount
- The expected read count.actualReadCount
- The actual read count.public StreamReadException(String message, int expectedReadCount, int actualReadCount)
Initializes a new instance of the StreamReadException
class.
message
- The message.expectedReadCount
- The expected read count.actualReadCount
- The actual read count.