Class ErrorResponse
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.ErrorResponse
-
public class ErrorResponse extends Object
Error Response.
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringcode()Get error code.Stringmessage()Get error message indicating why the operation failed.ErrorResponsewithCode(String code)Set error code.ErrorResponsewithMessage(String message)Set error message indicating why the operation failed.
-
-
-
Method Detail
-
code
public String code()
Get error code.- Returns:
- the code value
-
withCode
public ErrorResponse withCode(String code)
Set error code.- Parameters:
code- the code value to set- Returns:
- the ErrorResponse object itself.
-
message
public String message()
Get error message indicating why the operation failed.- Returns:
- the message value
-
withMessage
public ErrorResponse withMessage(String message)
Set error message indicating why the operation failed.- Parameters:
message- the message value to set- Returns:
- the ErrorResponse object itself.
-
-