public final class UnexpectedLengthException extends IllegalStateException
Constructor and Description |
---|
UnexpectedLengthException(String message,
long bytesRead,
long bytesExpected)
Constructor of the UnexpectedLengthException.
|
Modifier and Type | Method and Description |
---|---|
long |
getBytesExpected() |
long |
getBytesRead() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnexpectedLengthException(String message, long bytesRead, long bytesExpected)
message
- The message for the exception.bytesRead
- The number of bytes read from resource.bytesExpected
- The number of bytes expected from the receiver.Copyright © 2021 Microsoft Corporation. All rights reserved.