Class TextAnalyticsError

java.lang.Object
com.azure.ai.textanalytics.models.TextAnalyticsError

public final class TextAnalyticsError extends Object
  • Constructor Details

    • TextAnalyticsError

      public TextAnalyticsError(TextAnalyticsErrorCode errorCode, String message, String target)
      Creates a TextAnalyticsError model that describes text analytics error.
      Parameters:
      errorCode - The error code.
      message - The error message.
      target - The error target.
  • Method Details

    • 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.