OperationError Class

  • java.lang.Object
    • com.microsoft.azure.management.labservices.v2018_10_15.OperationError

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.

OperationError withCode(String code)

Set the error code of the operation error.

OperationError withMessage(String message)

Set the error message of the operation error.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

OperationError

public OperationError()

Method Details

code

public String code()

Get the error code of the operation error.

Returns:

the code value

message

public String message()

Get the error message of the operation error.

Returns:

the message value

withCode

public OperationError withCode(String code)

Set the error code of the operation error.

Parameters:

code - the code value to set

Returns:

the OperationError object itself.

withMessage

public OperationError withMessage(String message)

Set the error message of the operation error.

Parameters:

message - the message value to set

Returns:

the OperationError object itself.

Applies to