Class InnerError
java.lang.Object
com.azure.resourcemanager.compute.models.InnerError
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InnerError>
Inner error details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the errordetail property: The internal error message or exception dump.Get the exceptiontype property: The exception type.static InnerErrorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InnerError from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withErrordetail(String errordetail) Set the errordetail property: The internal error message or exception dump.withExceptiontype(String exceptiontype) Set the exceptiontype property: The exception type.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
InnerError
public InnerError()Creates an instance of InnerError class.
-
-
Method Details
-
exceptiontype
Get the exceptiontype property: The exception type.- Returns:
- the exceptiontype value.
-
withExceptiontype
Set the exceptiontype property: The exception type.- Parameters:
exceptiontype- the exceptiontype value to set.- Returns:
- the InnerError object itself.
-
errordetail
Get the errordetail property: The internal error message or exception dump.- Returns:
- the errordetail value.
-
withErrordetail
Set the errordetail property: The internal error message or exception dump.- Parameters:
errordetail- the errordetail value to set.- Returns:
- the InnerError object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<InnerError>- Throws:
IOException
-
fromJson
Reads an instance of InnerError from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of InnerError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the InnerError.
-