ErrorDetails Class

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

public class ErrorDetails

Common error details representation.

Constructor Summary

Constructor Description
ErrorDetails()

Method Summary

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

Get error code.

java.lang.String message()

Get error message.

java.lang.String target()

Get error target.

ErrorDetails withCode(String code)

Set error code.

ErrorDetails withMessage(String message)

Set error message.

ErrorDetails 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

ErrorDetails

public ErrorDetails()

Method Details

code

public String code()

Get error code.

Returns:

the code 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 ErrorDetails withCode(String code)

Set error code.

Parameters:

code - the code value to set

Returns:

the ErrorDetails object itself.

withMessage

public ErrorDetails withMessage(String message)

Set error message.

Parameters:

message - the message value to set

Returns:

the ErrorDetails object itself.

withTarget

public ErrorDetails withTarget(String target)

Set error target.

Parameters:

target - the target value to set

Returns:

the ErrorDetails object itself.

Applies to