Error Class
- java.
lang. Object - com.
azure. resourcemanager. selfhelp. models. Error
- com.
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:
details
public List<Error> details()
Get the details property: An array of additional nested error response info objects, as described by this contract.
Returns:
message
public String message()
Get the message property: Description of the error.
Returns:
type
public String type()
Get the type property: Service specific error type which serves as additional context for the error herein.
Returns:
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:
Returns: