Package com.azure.quantum.jobs.models
Class ErrorData
java.lang.Object
com.azure.quantum.jobs.models.ErrorData
An error response from Azure.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code property: An identifier for the error.Get the message property: A message describing the error, intended to be suitable for displaying in a user interface.Set the code property: An identifier for the error.setMessage
(String message) Set the message property: A message describing the error, intended to be suitable for displaying in a user interface.
-
Constructor Details
-
ErrorData
public ErrorData()
-
-
Method Details
-
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
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
Get the message property: A message describing the error, intended to be suitable for displaying in a user interface.- Returns:
- the message value.
-
setMessage
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.
-