Class ErrorEntity
java.lang.Object
com.azure.resourcemanager.appservice.models.ErrorEntity
Body of the error response returned from the API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: Basic error code.details()
Get the details property: Error Details.Get the extendedCode property: Type of error.Get the innerErrors property: Inner errors.message()
Get the message property: Any details of the error.Get the messageTemplate property: Message template.Get the parameters property: Parameters for the template.target()
Get the target property: The error target.void
validate()
Validates the instance.Set the code property: Basic error code.withDetails
(List<ErrorEntity> details) Set the details property: Error Details.withExtendedCode
(String extendedCode) Set the extendedCode property: Type of error.withInnerErrors
(List<ErrorEntity> innerErrors) Set the innerErrors property: Inner errors.withMessage
(String message) Set the message property: Any details of the error.withMessageTemplate
(String messageTemplate) Set the messageTemplate property: Message template.withParameters
(List<String> parameters) Set the parameters property: Parameters for the template.withTarget
(String target) Set the target property: The error target.
-
Constructor Details
-
ErrorEntity
public ErrorEntity()
-
-
Method Details
-
extendedCode
Get the extendedCode property: Type of error.- Returns:
- the extendedCode value.
-
withExtendedCode
Set the extendedCode property: Type of error.- Parameters:
extendedCode
- the extendedCode value to set.- Returns:
- the ErrorEntity object itself.
-
messageTemplate
Get the messageTemplate property: Message template.- Returns:
- the messageTemplate value.
-
withMessageTemplate
Set the messageTemplate property: Message template.- Parameters:
messageTemplate
- the messageTemplate value to set.- Returns:
- the ErrorEntity object itself.
-
parameters
Get the parameters property: Parameters for the template.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Parameters for the template.- Parameters:
parameters
- the parameters value to set.- Returns:
- the ErrorEntity object itself.
-
innerErrors
Get the innerErrors property: Inner errors.- Returns:
- the innerErrors value.
-
withInnerErrors
Set the innerErrors property: Inner errors.- Parameters:
innerErrors
- the innerErrors value to set.- Returns:
- the ErrorEntity object itself.
-
details
Get the details property: Error Details.- Returns:
- the details value.
-
withDetails
Set the details property: Error Details.- Parameters:
details
- the details value to set.- Returns:
- the ErrorEntity object itself.
-
target
Get the target property: The error target.- Returns:
- the target value.
-
withTarget
Set the target property: The error target.- Parameters:
target
- the target value to set.- Returns:
- the ErrorEntity object itself.
-
code
Get the code property: Basic error code.- Returns:
- the code value.
-
withCode
Set the code property: Basic error code.- Parameters:
code
- the code value to set.- Returns:
- the ErrorEntity object itself.
-
message
Get the message property: Any details of the error.- Returns:
- the message value.
-
withMessage
Set the message property: Any details of the error.- Parameters:
message
- the message value to set.- Returns:
- the ErrorEntity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-