Class InnerError

java.lang.Object
com.azure.resourcemanager.compute.models.InnerError
All Implemented Interfaces:
com.azure.json.JsonSerializable<InnerError>

public final class InnerError extends Object implements com.azure.json.JsonSerializable<InnerError>
Inner error details.
  • Constructor Details

    • InnerError

      public InnerError()
      Creates an instance of InnerError class.
  • Method Details

    • exceptiontype

      public String exceptiontype()
      Get the exceptiontype property: The exception type.
      Returns:
      the exceptiontype value.
    • withExceptiontype

      public InnerError withExceptiontype(String exceptiontype)
      Set the exceptiontype property: The exception type.
      Parameters:
      exceptiontype - the exceptiontype value to set.
      Returns:
      the InnerError object itself.
    • errordetail

      public String errordetail()
      Get the errordetail property: The internal error message or exception dump.
      Returns:
      the errordetail value.
    • withErrordetail

      public InnerError withErrordetail(String errordetail)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<InnerError>
      Throws:
      IOException
    • fromJson

      public static InnerError fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.