ErrorEntity Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ErrorEntity
- com.
Implements
public final class ErrorEntity
implements JsonSerializable<ErrorEntity>
Body of the error response returned from the API.
Constructor Summary
Constructor | Description |
---|---|
ErrorEntity() |
Creates an instance of Error |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: Basic error code. |
List<Error |
details()
Get the details property: Error Details. |
String |
extendedCode()
Get the extended |
static
Error |
fromJson(JsonReader jsonReader)
Reads an instance of Error |
List<Error |
innerErrors()
Get the inner |
String |
message()
Get the message property: Any details of the error. |
String |
messageTemplate()
Get the message |
List<String> |
parameters()
Get the parameters property: Parameters for the template. |
String |
target()
Get the target property: The error target. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Error |
withCode(String code)
Set the code property: Basic error code. |
Error |
withDetails(List<ErrorEntity> details)
Set the details property: Error Details. |
Error |
withExtendedCode(String extendedCode)
Set the extended |
Error |
withInnerErrors(List<ErrorEntity> innerErrors)
Set the inner |
Error |
withMessage(String message)
Set the message property: Any details of the error. |
Error |
withMessageTemplate(String messageTemplate)
Set the message |
Error |
withParameters(List<String> parameters)
Set the parameters property: Parameters for the template. |
Error |
withTarget(String target)
Set the target property: The error target. |
Methods inherited from java.lang.Object
Constructor Details
ErrorEntity
public ErrorEntity()
Creates an instance of ErrorEntity class.
Method Details
code
public String code()
Get the code property: Basic error code.
Returns:
details
public List
Get the details property: Error Details.
Returns:
extendedCode
public String extendedCode()
Get the extendedCode property: Type of error.
Returns:
fromJson
public static ErrorEntity fromJson(JsonReader jsonReader)
Reads an instance of ErrorEntity from the JsonReader.
Parameters:
Returns:
Throws:
innerErrors
public List
Get the innerErrors property: Inner errors.
Returns:
message
public String message()
Get the message property: Any details of the error.
Returns:
messageTemplate
public String messageTemplate()
Get the messageTemplate property: Message template.
Returns:
parameters
public List
Get the parameters property: Parameters for the template.
Returns:
target
public String target()
Get the target property: The error target.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCode
public ErrorEntity withCode(String code)
Set the code property: Basic error code.
Parameters:
Returns:
withDetails
public ErrorEntity withDetails(List
Set the details property: Error Details.
Parameters:
Returns:
withExtendedCode
public ErrorEntity withExtendedCode(String extendedCode)
Set the extendedCode property: Type of error.
Parameters:
Returns:
withInnerErrors
public ErrorEntity withInnerErrors(List
Set the innerErrors property: Inner errors.
Parameters:
Returns:
withMessage
public ErrorEntity withMessage(String message)
Set the message property: Any details of the error.
Parameters:
Returns:
withMessageTemplate
public ErrorEntity withMessageTemplate(String messageTemplate)
Set the messageTemplate property: Message template.
Parameters:
Returns:
withParameters
public ErrorEntity withParameters(List
Set the parameters property: Parameters for the template.
Parameters:
Returns:
withTarget
public ErrorEntity withTarget(String target)
Set the target property: The error target.
Parameters:
Returns:
Applies to
Azure SDK for Java