ErrorInfo Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ErrorInfo
- com.
Implements
public class ErrorInfo
implements JsonSerializable<ErrorInfo>
The error info.
Constructor Summary
Constructor | Description |
---|---|
ErrorInfo() |
Creates an instance of Error |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: The error code. |
static
Error |
fromJson(JsonReader jsonReader)
Reads an instance of Error |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Error |
withCode(String code)
Set the code property: The error code. |
Methods inherited from java.lang.Object
Constructor Details
ErrorInfo
public ErrorInfo()
Creates an instance of ErrorInfo class.
Method Details
code
public String code()
Get the code property: The error code.
Returns:
fromJson
public static ErrorInfo fromJson(JsonReader jsonReader)
Reads an instance of ErrorInfo from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCode
public ErrorInfo withCode(String code)
Set the code property: The error code.
Parameters:
Returns:
Applies to
Azure SDK for Java