Class ErrorResponse

java.lang.Object
com.azure.ai.anomalydetector.models.ErrorResponse

public final class ErrorResponse extends Object
ErrorResponse contains code and message that shows the error information.
  • Constructor Details

    • ErrorResponse

      public ErrorResponse(String code, String message)
      Creates an instance of ErrorResponse class.
      Parameters:
      code - the code value to set.
      message - the message value to set.
  • Method Details

    • getCode

      public String getCode()
      Get the code property: The error code.
      Returns:
      the code value.
    • getMessage

      public String getMessage()
      Get the message property: The message explaining the error reported by the service.
      Returns:
      the message value.