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

138 строки
12 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.exception.HttpRequestException"
fullName: "com.azure.core.exception.HttpRequestException"
name: "HttpRequestException"
nameWithType: "HttpRequestException"
summary: "The `HttpRequestException` that represents an exception thrown when an HTTP request fails."
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=\"com.azure.core.exception.AzureException?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 class **HttpRequestException**</br> extends <xref href=\"com.azure.core.exception.AzureException?alt=com.azure.core.exception.AzureException&text=AzureException\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.core.exception.HttpRequestException.HttpRequestException(com.azure.core.http.HttpRequest)"
fullName: "com.azure.core.exception.HttpRequestException.HttpRequestException(HttpRequest request)"
name: "HttpRequestException(HttpRequest request)"
nameWithType: "HttpRequestException.HttpRequestException(HttpRequest request)"
summary: "Initializes a new instance of the Http<wbr>Request<wbr>Exception class."
parameters:
- description: "The <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
syntax: "public HttpRequestException(HttpRequest request)"
desc: "Initializes a new instance of the HttpRequestException class."
- uid: "com.azure.core.exception.HttpRequestException.HttpRequestException(com.azure.core.http.HttpRequest,java.lang.Throwable)"
fullName: "com.azure.core.exception.HttpRequestException.HttpRequestException(HttpRequest request, Throwable cause)"
name: "HttpRequestException(HttpRequest request, Throwable cause)"
nameWithType: "HttpRequestException.HttpRequestException(HttpRequest request, Throwable cause)"
summary: "Initializes a new instance of the Http<wbr>Request<wbr>Exception class."
parameters:
- description: "The <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
- description: "The <xref uid=\"java.lang.Throwable\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Throwable\"></xref> which caused the creation of this HttpRequestException."
name: "cause"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
syntax: "public HttpRequestException(HttpRequest request, Throwable cause)"
desc: "Initializes a new instance of the HttpRequestException class."
- uid: "com.azure.core.exception.HttpRequestException.HttpRequestException(java.lang.String,com.azure.core.http.HttpRequest)"
fullName: "com.azure.core.exception.HttpRequestException.HttpRequestException(String message, HttpRequest request)"
name: "HttpRequestException(String message, HttpRequest request)"
nameWithType: "HttpRequestException.HttpRequestException(String message, HttpRequest request)"
summary: "Initializes a new instance of the Http<wbr>Request<wbr>Exception class."
parameters:
- description: "The exception message."
name: "message"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "the HTTP request sends to the Azure service"
name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
syntax: "public HttpRequestException(String message, HttpRequest request)"
desc: "Initializes a new instance of the HttpRequestException class."
- uid: "com.azure.core.exception.HttpRequestException.HttpRequestException(java.lang.String,com.azure.core.http.HttpRequest,java.lang.Throwable)"
fullName: "com.azure.core.exception.HttpRequestException.HttpRequestException(String message, HttpRequest request, Throwable cause)"
name: "HttpRequestException(String message, HttpRequest request, Throwable cause)"
nameWithType: "HttpRequestException.HttpRequestException(String message, HttpRequest request, Throwable cause)"
summary: "Initializes a new instance of the Http<wbr>Request<wbr>Exception class."
parameters:
- description: "The exception message."
name: "message"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "The <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
- description: "The <xref uid=\"java.lang.Throwable\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Throwable\"></xref> which caused the creation of this HttpRequestException."
name: "cause"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
syntax: "public HttpRequestException(String message, HttpRequest request, Throwable cause)"
desc: "Initializes a new instance of the HttpRequestException class."
- uid: "com.azure.core.exception.HttpRequestException.HttpRequestException(java.lang.String,com.azure.core.http.HttpRequest,java.lang.Throwable,boolean,boolean)"
fullName: "com.azure.core.exception.HttpRequestException.HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)"
name: "HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)"
nameWithType: "HttpRequestException.HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)"
summary: "Initializes a new instance of the Http<wbr>Request<wbr>Exception class."
parameters:
- description: "The exception message."
name: "message"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- description: "The <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
name: "request"
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
- description: "The <xref uid=\"java.lang.Throwable\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Throwable\"></xref> which caused the creation of this HttpRequestException."
name: "cause"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
- description: "Whether suppression is enabled or disabled."
name: "enableSuppression"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- description: "Whether the exception stack trace will be filled in."
name: "writableStackTrace"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
syntax: "public HttpRequestException(String message, HttpRequest request, Throwable cause, boolean enableSuppression, boolean writableStackTrace)"
desc: "Initializes a new instance of the HttpRequestException class."
methods:
- uid: "com.azure.core.exception.HttpRequestException.getRequest()"
fullName: "com.azure.core.exception.HttpRequestException.getRequest()"
name: "getRequest()"
nameWithType: "HttpRequestException.getRequest()"
summary: "Gets the <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
syntax: "public HttpRequest getRequest()"
desc: "Gets the <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
returns:
description: "The <xref uid=\"com.azure.core.http.HttpRequest\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpRequest\"></xref> being sent when the exception occurred."
type: "<xref href=\"com.azure.core.http.HttpRequest?alt=com.azure.core.http.HttpRequest&text=HttpRequest\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The `HttpRequestException` that represents an exception thrown when an HTTP request fails.\n\nThis exception is typically thrown when the client sends an HTTP request to the Azure service, but the service is unable to process the request."
metadata: {}
package: "com.azure.core.exception"
artifact: com.azure:azure-core:1.54.0