ErrorResponse Class
- java.
lang. Object - com.
azure. ai. anomalydetector. models. ErrorResponse
- com.
public final class ErrorResponse
ErrorResponse contains code and message that shows the error information.
Constructor Summary
Constructor | Description |
---|---|
ErrorResponse(String code, String message) |
Creates an instance of Error |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Get the code property: The error code. |
String |
getMessage()
Get the message property: The message explaining the error reported by the service. |
Methods inherited from java.lang.Object
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.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java