public class UnexpectedLengthException extends IllegalStateException
| Constructor and Description |
|---|
UnexpectedLengthException(String message,
long bytesRead,
long bytesExpected)
Creates an UnexpectedLengthException.
|
| Modifier and Type | Method and Description |
|---|---|
long |
bytesExpected() |
long |
bytesRead() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnexpectedLengthException(String message, long bytesRead, long bytesExpected)
message - the messagebytesRead - the number of bytes actually read in the streambytesExpected - the number of bytes expected to be read in the stream/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/