### YamlMime:JavaType
uid: "com.azure.ai.textanalytics.models.TextAnalyticsError"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError"
name: "TextAnalyticsError"
nameWithType: "TextAnalyticsError"
summary: "The `TextAnalyticsError` model."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **TextAnalyticsError** implements <>"
constructors:
- uid: "com.azure.ai.textanalytics.models.TextAnalyticsError.TextAnalyticsError(com.azure.ai.textanalytics.models.TextAnalyticsErrorCode,java.lang.String,java.lang.String)"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError.TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)"
name: "TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)"
nameWithType: "TextAnalyticsError.TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)"
summary: "Creates a `TextAnalyticsError` model that describes text analytics error."
parameters:
- description: "The error code."
name: "errorCode"
type: ""
- description: "The error message."
name: "message"
type: "String"
- description: "The error target."
name: "target"
type: "String"
syntax: "public TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)"
desc: "Creates a `TextAnalyticsError` model that describes text analytics error."
methods:
- uid: "com.azure.ai.textanalytics.models.TextAnalyticsError.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "TextAnalyticsError.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of TextAnalyticsError from the JsonReader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: ""
syntax: "public static TextAnalyticsError fromJson(JsonReader jsonReader)"
exceptions:
- description: "If the deserialized JSON object was missing any required properties."
type: "IOException"
desc: "Reads an instance of TextAnalyticsError from the JsonReader."
returns:
description: "An instance of TextAnalyticsError if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: ""
- uid: "com.azure.ai.textanalytics.models.TextAnalyticsError.getErrorCode()"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError.getErrorCode()"
name: "getErrorCode()"
nameWithType: "TextAnalyticsError.getErrorCode()"
summary: "Get the code property: Error code."
syntax: "public TextAnalyticsErrorCode getErrorCode()"
desc: "Get the code property: Error code. Possible values include: 'invalidRequest', 'invalidArgument', 'internalServerError', 'serviceUnavailable'."
returns:
description: "The code value."
type: ""
- uid: "com.azure.ai.textanalytics.models.TextAnalyticsError.getMessage()"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError.getMessage()"
name: "getMessage()"
nameWithType: "TextAnalyticsError.getMessage()"
summary: "Get the message property: Error message."
syntax: "public String getMessage()"
desc: "Get the message property: Error message."
returns:
description: "The message value."
type: "String"
- uid: "com.azure.ai.textanalytics.models.TextAnalyticsError.getTarget()"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError.getTarget()"
name: "getTarget()"
nameWithType: "TextAnalyticsError.getTarget()"
summary: "Get the target property: Error target."
syntax: "public String getTarget()"
desc: "Get the target property: Error target."
returns:
description: "The target value."
type: "String"
- uid: "com.azure.ai.textanalytics.models.TextAnalyticsError.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.ai.textanalytics.models.TextAnalyticsError.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "TextAnalyticsError.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: ""
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "IOException"
returns:
type: ""
type: "class"
desc: "The `TextAnalyticsError` model."
implements:
- "<>"
metadata: {}
package: "com.azure.ai.textanalytics.models"
artifact: com.azure:azure-ai-textanalytics:5.5.3