java.lang.Object
com.azure.resourcemanager.workloads.models.Error
Direct Known Subclasses:
MonitorPropertiesErrors, ProviderInstancePropertiesErrors

public class Error extends Object
Standard error object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the code property: Server-defined set of error codes.
    Get the details property: Array of details about specific errors that led to this reported error.
    Get the innerError property: Object containing more specific information than the current object about the error.
    Get the message property: Human-readable representation of the error.
    Get the target property: Target of the error.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Error

      public Error()
  • Method Details

    • code

      public String code()
      Get the code property: Server-defined set of error codes.
      Returns:
      the code value.
    • message

      public String message()
      Get the message property: Human-readable representation of the error.
      Returns:
      the message value.
    • target

      public String target()
      Get the target property: Target of the error.
      Returns:
      the target value.
    • details

      public List<Error> details()
      Get the details property: Array of details about specific errors that led to this reported error.
      Returns:
      the details value.
    • innerError

      public ErrorInnerError innerError()
      Get the innerError property: Object containing more specific information than the current object about the error.
      Returns:
      the innerError value.
    • validate

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