ErrorResponse Class
- java.
lang. Object - com.
microsoft. azure. management. cosmosdb. ErrorResponse
- com.
public class ErrorResponse
Error Response.
Constructor Summary
Constructor | Description | |
---|---|---|
ErrorResponse() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get error code. |
java.lang.String |
message()
Get error message indicating why the operation failed. |
Error |
withCode(String code)
Set error code. |
Error |
withMessage(String message)
Set error message indicating why the operation failed. |
Methods inherited from java.lang.Object
Constructor Details
ErrorResponse
public ErrorResponse()
Method Details
code
public String code()
Get error code.
Returns:
message
public String message()
Get error message indicating why the operation failed.
Returns:
withCode
public ErrorResponse withCode(String code)
Set error code.
Parameters:
Returns:
withMessage
public ErrorResponse withMessage(String message)
Set error message indicating why the operation failed.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for