Class ExtendedErrorInfo

java.lang.Object
com.azure.resourcemanager.logic.models.ExtendedErrorInfo

public final class ExtendedErrorInfo extends Object
The extended error info.
  • Constructor Details

    • ExtendedErrorInfo

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

    • code

      public ErrorResponseCode code()
      Get the code property: The error code.
      Returns:
      the code value.
    • withCode

      public ExtendedErrorInfo withCode(ErrorResponseCode code)
      Set the code property: The error code.
      Parameters:
      code - the code value to set.
      Returns:
      the ExtendedErrorInfo object itself.
    • message

      public String message()
      Get the message property: The error message.
      Returns:
      the message value.
    • withMessage

      public ExtendedErrorInfo withMessage(String message)
      Set the message property: The error message.
      Parameters:
      message - the message value to set.
      Returns:
      the ExtendedErrorInfo object itself.
    • details

      public List<ExtendedErrorInfo> details()
      Get the details property: The error message details.
      Returns:
      the details value.
    • withDetails

      public ExtendedErrorInfo withDetails(List<ExtendedErrorInfo> details)
      Set the details property: The error message details.
      Parameters:
      details - the details value to set.
      Returns:
      the ExtendedErrorInfo object itself.
    • innerError

      public Object innerError()
      Get the innerError property: The inner error.
      Returns:
      the innerError value.
    • withInnerError

      public ExtendedErrorInfo withInnerError(Object innerError)
      Set the innerError property: The inner error.
      Parameters:
      innerError - the innerError value to set.
      Returns:
      the ExtendedErrorInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.