OperationError Class
- java.
lang. Object - com.
microsoft. azure. management. labservices. v2018_10_15.OperationError
- com.
public class OperationError
Error details for the operation in case of a failure.
Constructor Summary
Constructor | Description | |
---|---|---|
OperationError() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
code()
Get the error code of the operation error. |
java.lang.String |
message()
Get the error message of the operation error. |
Operation |
withCode(String code)
Set the error code of the operation error. |
Operation |
withMessage(String message)
Set the error message of the operation error. |
Methods inherited from java.lang.Object
Constructor Details
OperationError
public OperationError()
Method Details
code
public String code()
Get the error code of the operation error.
Returns:
message
public String message()
Get the error message of the operation error.
Returns:
withCode
public OperationError withCode(String code)
Set the error code of the operation error.
Parameters:
Returns:
withMessage
public OperationError withMessage(String message)
Set the error message of the operation error.
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