Error Class

  • java.lang.Object
    • com.azure.resourcemanager.selfhelp.models.Error

public final class Error

Error definition.

Constructor Summary

Constructor Description
Error()

Creates an instance of Error class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: Service specific error code which serves as the substatus for the HTTP error code.

List<Error> details()

Get the details property: An array of additional nested error response info objects, as described by this contract.

String message()

Get the message property: Description of the error.

String type()

Get the type property: Service specific error type which serves as additional context for the error herein.

void validate()

Validates the instance.

Error withDetails(List<Error> details)

Set the details property: An array of additional nested error response info objects, as described by this contract.

Methods inherited from java.lang.Object

Constructor Details

Error

public Error()

Creates an instance of Error class.

Method Details

code

public String code()

Get the code property: Service specific error code which serves as the substatus for the HTTP error code.

Returns:

the code value.

details

public List<Error> details()

Get the details property: An array of additional nested error response info objects, as described by this contract.

Returns:

the details value.

message

public String message()

Get the message property: Description of the error.

Returns:

the message value.

type

public String type()

Get the type property: Service specific error type which serves as additional context for the error herein.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDetails

public Error withDetails(List<Error> details)

Set the details property: An array of additional nested error response info objects, as described by this contract.

Parameters:

details - the details value to set.

Returns:

the Error object itself.

Applies to