Error Class

  • java.lang.Object
    • com.microsoft.azure.management.resourcegraph.v2019_04_01.Error

public class Error

Error info. Error details.

Constructor Summary

Constructor Description
Error()

Method Summary

Modifier and Type Method and Description
java.lang.String code()

Get error code identifying the specific error.

java.util.List<ErrorDetails> details()

Get error details.

java.lang.String message()

Get a human readable error message.

Error withCode(String code)

Set error code identifying the specific error.

Error withDetails(List<ErrorDetails> details)

Set error details.

Error withMessage(String message)

Set a human readable error message.

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

Error

public Error()

Method Details

code

public String code()

Get error code identifying the specific error.

Returns:

the code value

details

public List<ErrorDetails> details()

Get error details.

Returns:

the details value

message

public String message()

Get a human readable error message.

Returns:

the message value

withCode

public Error withCode(String code)

Set error code identifying the specific error.

Parameters:

code - the code value to set

Returns:

the Error object itself.

withDetails

public Error withDetails(List<ErrorDetails> details)

Set error details.

Parameters:

details - the details value to set

Returns:

the Error object itself.

withMessage

public Error withMessage(String message)

Set a human readable error message.

Parameters:

message - the message value to set

Returns:

the Error object itself.

Applies to