Error Class

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

public class Error

Common error representation.

Constructor Summary

Constructor Description
Error()

Method Summary

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

Get error code.

java.util.List<ErrorDetails> details()

Get error details.

java.lang.String innerError()

Get inner error message.

java.lang.String message()

Get error message.

java.lang.String target()

Get error target.

Error withCode(String code)

Set error code.

Error withDetails(List<ErrorDetails> details)

Set error details.

Error withInnerError(String innerError)

Set inner error message.

Error withMessage(String message)

Set error message.

Error withTarget(String target)

Set error target.

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.

Returns:

the code value

details

public List details()

Get error details.

Returns:

the details value

innerError

public String innerError()

Get inner error message.

Returns:

the innerError value

message

public String message()

Get error message.

Returns:

the message value

target

public String target()

Get error target.

Returns:

the target value

withCode

public Error withCode(String code)

Set error code.

Parameters:

code - the code value to set

Returns:

the Error object itself.

withDetails

public Error withDetails(List details)

Set error details.

Parameters:

details - the details value to set

Returns:

the Error object itself.

withInnerError

public Error withInnerError(String innerError)

Set inner error message.

Parameters:

innerError - the innerError value to set

Returns:

the Error object itself.

withMessage

public Error withMessage(String message)

Set error message.

Parameters:

message - the message value to set

Returns:

the Error object itself.

withTarget

public Error withTarget(String target)

Set error target.

Parameters:

target - the target value to set

Returns:

the Error object itself.

Applies to