Error Class

  • java.lang.Object
    • com.microsoft.azure.management.network.Error

public class Error

The Error model.

Method Summary

Modifier and Type Method and Description
String code()

Get the code value.

List<ErrorDetails> details()

Get the details value.

String innerError()

Get the innerError value.

String message()

Get the message value.

String target()

Get the target value.

Error withCode(String code)

Set the code value.

Error withDetails(List<ErrorDetails> details)

Set the details value.

Error withInnerError(String innerError)

Set the innerError value.

Error withMessage(String message)

Set the message value.

Error withTarget(String target)

Set the target value.

Method Details

code

public String code()

Get the code value.

Returns:

the code value

details

public List details()

Get the details value.

Returns:

the details value

innerError

public String innerError()

Get the innerError value.

Returns:

the innerError value

message

public String message()

Get the message value.

Returns:

the message value

target

public String target()

Get the target value.

Returns:

the target value

withCode

public Error withCode(String code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the Error object itself.

withDetails

public Error withDetails(List details)

Set the details value.

Parameters:

details - the details value to set

Returns:

the Error object itself.

withInnerError

public Error withInnerError(String innerError)

Set the innerError value.

Parameters:

innerError - the innerError value to set

Returns:

the Error object itself.

withMessage

public Error withMessage(String message)

Set the message value.

Parameters:

message - the message value to set

Returns:

the Error object itself.

withTarget

public Error withTarget(String target)

Set the target value.

Parameters:

target - the target value to set

Returns:

the Error object itself.

Applies to