Class ErrorDefinition

java.lang.Object
com.azure.resourcemanager.workloads.models.ErrorDefinition

public final class ErrorDefinition extends Object
Error definition.
  • Constructor Details

    • ErrorDefinition

      public ErrorDefinition()
  • Method Details

    • code

      public String code()
      Get the code property: Service specific error code which serves as the substatus for the HTTP error code.
      Returns:
      the code value.
    • message

      public String message()
      Get the message property: Description of the error.
      Returns:
      the message value.
    • details

      public List<ErrorDefinition> details()
      Get the details property: Internal error details.
      Returns:
      the details value.
    • validate

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