java.lang.Object
com.microsoft.azure.management.network.Error

public class Error extends Object
Common error representation.
  • Constructor Details

    • Error

      public Error()
  • Method Details

    • code

      public String code()
      Get error code.
      Returns:
      the code value
    • withCode

      public Error withCode(String code)
      Set error code.
      Parameters:
      code - the code value to set
      Returns:
      the Error object itself.
    • message

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

      public Error withMessage(String message)
      Set error message.
      Parameters:
      message - the message value to set
      Returns:
      the Error object itself.
    • target

      public String target()
      Get error target.
      Returns:
      the target value
    • withTarget

      public Error withTarget(String target)
      Set error target.
      Parameters:
      target - the target value to set
      Returns:
      the Error object itself.
    • details

      public List<ErrorDetails> details()
      Get error details.
      Returns:
      the details value
    • withDetails

      public Error withDetails(List<ErrorDetails> details)
      Set error details.
      Parameters:
      details - the details value to set
      Returns:
      the Error object itself.
    • innerError

      public String innerError()
      Get inner error message.
      Returns:
      the innerError value
    • withInnerError

      public Error withInnerError(String innerError)
      Set inner error message.
      Parameters:
      innerError - the innerError value to set
      Returns:
      the Error object itself.