Class ErrorData

java.lang.Object
com.azure.quantum.jobs.models.ErrorData

public final class ErrorData extends Object
An error response from Azure.
  • Constructor Details

    • ErrorData

      public ErrorData()
  • Method Details

    • getCode

      public String getCode()
      Get the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
      Returns:
      the code value.
    • setCode

      public ErrorData setCode(String code)
      Set the code property: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
      Parameters:
      code - the code value to set.
      Returns:
      the ErrorData object itself.
    • getMessage

      public String getMessage()
      Get the message property: A message describing the error, intended to be suitable for displaying in a user interface.
      Returns:
      the message value.
    • setMessage

      public ErrorData setMessage(String message)
      Set the message property: A message describing the error, intended to be suitable for displaying in a user interface.
      Parameters:
      message - the message value to set.
      Returns:
      the ErrorData object itself.