azure-docs-sdk-java/docs-ref-autogen/com.azure.core.exception.Un...

86 строки
7.0 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.exception.UnexpectedLengthException"
fullName: "com.azure.core.exception.UnexpectedLengthException"
name: "UnexpectedLengthException"
nameWithType: "UnexpectedLengthException"
summary: "The `UnexpectedLengthException` represents an exception thrown when the specified input length doesn't match the actual data length."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Throwable?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Exception?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.RuntimeException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.IllegalStateException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable-\">addSuppressed</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#fillInStackTrace--\">fillInStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getCause--\">getCause</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getLocalizedMessage--\">getLocalizedMessage</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getMessage--\">getMessage</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getStackTrace--\">getStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getSuppressed--\">getSuppressed</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#initCause-java.lang.Throwable-\">initCause</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintStream-\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement:A-\">setStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#toString--\">toString</a>"
syntax: "public final class **UnexpectedLengthException**</br> extends <a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html\">IllegalStateException</a>"
constructors:
- uid: "com.azure.core.exception.UnexpectedLengthException.UnexpectedLengthException(java.lang.String,long,long)"
fullName: "com.azure.core.exception.UnexpectedLengthException.UnexpectedLengthException(String message, long bytesRead, long bytesExpected)"
name: "UnexpectedLengthException(String message, long bytesRead, long bytesExpected)"
nameWithType: "UnexpectedLengthException.UnexpectedLengthException(String message, long bytesRead, long bytesExpected)"
summary: "Constructor of the Unexpected<wbr>Length<wbr>Exception."
parameters:
- description: "The message for the exception."
name: "message"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "The number of bytes read from resource."
name: "bytesRead"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
- description: "The number of bytes expected from the receiver."
name: "bytesExpected"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
syntax: "public UnexpectedLengthException(String message, long bytesRead, long bytesExpected)"
desc: "Constructor of the UnexpectedLengthException."
methods:
- uid: "com.azure.core.exception.UnexpectedLengthException.getBytesExpected()"
fullName: "com.azure.core.exception.UnexpectedLengthException.getBytesExpected()"
name: "getBytesExpected()"
nameWithType: "UnexpectedLengthException.getBytesExpected()"
summary: "Gets the number of bytes that were expected to be read from the input."
syntax: "public long getBytesExpected()"
desc: "Gets the number of bytes that were expected to be read from the input."
returns:
description: "the number of bytes that were expected to be read from the input"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.core.exception.UnexpectedLengthException.getBytesRead()"
fullName: "com.azure.core.exception.UnexpectedLengthException.getBytesRead()"
name: "getBytesRead()"
nameWithType: "UnexpectedLengthException.getBytesRead()"
summary: "Gets the number of bytes read from the input."
syntax: "public long getBytesRead()"
desc: "Gets the number of bytes read from the input."
returns:
description: "the number of bytes read from the input"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The `UnexpectedLengthException` represents an exception thrown when the specified input length doesn't match the actual data length.\n\nThis exception is typically thrown when the number of bytes read from an input source does not match the expected number of bytes. This could occur when reading data from a file or a network connection.\n\nThis class also provides methods to get the number of bytes read from the input and the number of bytes that were expected to be read from the input."
metadata: {}
package: "com.azure.core.exception"
artifact: com.azure:azure-core:1.54.0