TextAnalyticsError Class
- java.
lang. Object - com.
azure. ai. textanalytics. models. TextAnalyticsError
- com.
Implements
public final class TextAnalyticsError
implements JsonSerializable<TextAnalyticsError>
The TextAnalyticsError model.
Constructor Summary
| Constructor | Description |
|---|---|
| TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target) |
Creates a |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Text |
fromJson(JsonReader jsonReader)
Reads an instance of Text |
|
Text |
getErrorCode()
Get the code property: Error code. |
| String |
getMessage()
Get the message property: Error message. |
| String |
getTarget()
Get the target property: Error target. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
TextAnalyticsError
public TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)
Creates a TextAnalyticsError model that describes text analytics error.
Parameters:
Method Details
fromJson
public static TextAnalyticsError fromJson(JsonReader jsonReader)
Reads an instance of TextAnalyticsError from the JsonReader.
Parameters:
Returns:
Throws:
getErrorCode
public TextAnalyticsErrorCode getErrorCode()
Get the code property: Error code. Possible values include: 'invalidRequest', 'invalidArgument', 'internalServerError', 'serviceUnavailable'.
Returns:
getMessage
public String getMessage()
Get the message property: Error message.
Returns:
getTarget
public String getTarget()
Get the target property: Error target.
Returns: