Class TextAnalyticsError
- java.lang.Object
-
- com.azure.ai.textanalytics.models.TextAnalyticsError
-
public final class TextAnalyticsError extends Object
TheTextAnalyticsError
model.
-
-
Constructor Summary
Constructors Constructor Description TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)
Creates aTextAnalyticsError
model that describes text analytics error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAnalyticsErrorCode
getErrorCode()
Get the code property: Error code.String
getMessage()
Get the message property: Error message.String
getTarget()
Get the target property: Error target.
-
-
-
Constructor Detail
-
TextAnalyticsError
public TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)
Creates aTextAnalyticsError
model that describes text analytics error.- Parameters:
errorCode
- The error code.message
- The error message.target
- The error target.
-
-
Method Detail
-
getErrorCode
public TextAnalyticsErrorCode getErrorCode()
Get the code property: Error code. Possible values include: 'invalidRequest', 'invalidArgument', 'internalServerError', 'serviceUnavailable'.- Returns:
- The code value.
-
getMessage
public String getMessage()
Get the message property: Error message.- Returns:
- The message value.
-
getTarget
public String getTarget()
Get the target property: Error target.- Returns:
- The target value.
-
-