java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ErrorDetail

public final class ErrorDetail extends Object
Error Detail class which encapsulates Code, Message and Recommendations.
  • Constructor Details

    • ErrorDetail

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

    • code

      public String code()
      Get the code property: Error code.
      Returns:
      the code value.
    • message

      public String message()
      Get the message property: Error Message related to the Code.
      Returns:
      the message value.
    • recommendations

      public List<String> recommendations()
      Get the recommendations property: List of recommendation strings.
      Returns:
      the recommendations value.
    • validate

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