Class ErrorModel

java.lang.Object
com.azure.resourcemanager.purview.models.ErrorModel

public class ErrorModel extends Object
Default error model.
  • Constructor Details

    • ErrorModel

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

    • code

      public String code()
      Get the code property: Gets or sets the code.
      Returns:
      the code value.
    • details

      public List<ErrorModel> details()
      Get the details property: Gets or sets the details.
      Returns:
      the details value.
    • message

      public String message()
      Get the message property: Gets or sets the messages.
      Returns:
      the message value.
    • target

      public String target()
      Get the target property: Gets or sets the target.
      Returns:
      the target value.
    • validate

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