azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.a...

126 строки
7.7 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.appplatform.models.Error"
fullName: "com.azure.resourcemanager.appplatform.models.Error"
name: "Error"
nameWithType: "Error"
summary: "The error code compose of code and message."
inheritances:
- "<xref href=\"java.lang.Object?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#toString--\">toString</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>"
syntax: "public final class **Error**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.appplatform.models.Error?alt=com.azure.resourcemanager.appplatform.models.Error&text=Error\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.appplatform.models.Error.Error()"
fullName: "com.azure.resourcemanager.appplatform.models.Error.Error()"
name: "Error()"
nameWithType: "Error.Error()"
summary: "Creates an instance of Error class."
syntax: "public Error()"
desc: "Creates an instance of Error class."
methods:
- uid: "com.azure.resourcemanager.appplatform.models.Error.code()"
fullName: "com.azure.resourcemanager.appplatform.models.Error.code()"
name: "code()"
nameWithType: "Error.code()"
summary: "Get the code property: The code of error."
syntax: "public String code()"
desc: "Get the code property: The code of error."
returns:
description: "the code value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.appplatform.models.Error.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.appplatform.models.Error.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "Error.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Error from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static Error fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the Error."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of Error from the JsonReader."
returns:
description: "An instance of Error if the JsonReader was pointing to an instance of it, or null if it was pointing to\n JSON null."
type: "<xref href=\"com.azure.resourcemanager.appplatform.models.Error?alt=com.azure.resourcemanager.appplatform.models.Error&text=Error\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.appplatform.models.Error.message()"
fullName: "com.azure.resourcemanager.appplatform.models.Error.message()"
name: "message()"
nameWithType: "Error.message()"
summary: "Get the message property: The message of error."
syntax: "public String message()"
desc: "Get the message property: The message of error."
returns:
description: "the message value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.appplatform.models.Error.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.appplatform.models.Error.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "Error.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.appplatform.models.Error.validate()"
fullName: "com.azure.resourcemanager.appplatform.models.Error.validate()"
name: "validate()"
nameWithType: "Error.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.appplatform.models.Error.withCode(java.lang.String)"
fullName: "com.azure.resourcemanager.appplatform.models.Error.withCode(String code)"
name: "withCode(String code)"
nameWithType: "Error.withCode(String code)"
summary: "Set the code property: The code of error."
parameters:
- description: "the code value to set."
name: "code"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public Error withCode(String code)"
desc: "Set the code property: The code of error."
returns:
description: "the Error object itself."
type: "<xref href=\"com.azure.resourcemanager.appplatform.models.Error?alt=com.azure.resourcemanager.appplatform.models.Error&text=Error\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.appplatform.models.Error.withMessage(java.lang.String)"
fullName: "com.azure.resourcemanager.appplatform.models.Error.withMessage(String message)"
name: "withMessage(String message)"
nameWithType: "Error.withMessage(String message)"
summary: "Set the message property: The message of error."
parameters:
- description: "the message value to set."
name: "message"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public Error withMessage(String message)"
desc: "Set the message property: The message of error."
returns:
description: "the Error object itself."
type: "<xref href=\"com.azure.resourcemanager.appplatform.models.Error?alt=com.azure.resourcemanager.appplatform.models.Error&text=Error\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The error code compose of code and message."
implements:
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.appplatform.models.Error?alt=com.azure.resourcemanager.appplatform.models.Error&text=Error\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.appplatform.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-appplatform:2.42.0