Class TextAnalyticsError
java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsError
The
TextAnalyticsError
model.-
Constructor Summary
ConstructorDescriptionTextAnalyticsError
(TextAnalyticsErrorCode errorCode, String message, String target) Creates aTextAnalyticsError
model that describes text analytics error. -
Method Summary
Modifier and TypeMethodDescriptionGet the code property: Error code.Get the message property: Error message.Get the target property: Error target.
-
Constructor Details
-
TextAnalyticsError
Creates aTextAnalyticsError
model that describes text analytics error.- Parameters:
errorCode
- The error code.message
- The error message.target
- The error target.
-
-
Method Details
-
getErrorCode
Get the code property: Error code. Possible values include: 'invalidRequest', 'invalidArgument', 'internalServerError', 'serviceUnavailable'.- Returns:
- The code value.
-
getMessage
Get the message property: Error message.- Returns:
- The message value.
-
getTarget
Get the target property: Error target.- Returns:
- The target value.
-