Class AnomalyDetectorError
- java.lang.Object
-
- com.azure.ai.anomalydetector.models.AnomalyDetectorError
-
public final class AnomalyDetectorError extends Object
Error information returned by the API.
-
-
Constructor Summary
Constructors Constructor Description AnomalyDetectorError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnomalyDetectorErrorCodes
getCode()
Get the code property: The error code.String
getMessage()
Get the message property: A message explaining the error reported by the service.AnomalyDetectorError
setCode(AnomalyDetectorErrorCodes code)
Set the code property: The error code.AnomalyDetectorError
setMessage(String message)
Set the message property: A message explaining the error reported by the service.
-
-
-
Method Detail
-
getCode
public AnomalyDetectorErrorCodes getCode()
Get the code property: The error code.- Returns:
- the code value.
-
setCode
public AnomalyDetectorError setCode(AnomalyDetectorErrorCodes code)
Set the code property: The error code.- Parameters:
code
- the code value to set.- Returns:
- the AnomalyDetectorError object itself.
-
getMessage
public String getMessage()
Get the message property: A message explaining the error reported by the service.- Returns:
- the message value.
-
setMessage
public AnomalyDetectorError setMessage(String message)
Set the message property: A message explaining the error reported by the service.- Parameters:
message
- the message value to set.- Returns:
- the AnomalyDetectorError object itself.
-
-