Class ErrorResponse

java.lang.Object
org.sourcelab.buildkite.api.client.response.ErrorResponse

public class ErrorResponse extends Object
Represents an Error response from the REST Api.
  • Constructor Details

    • ErrorResponse

      public ErrorResponse(String message, List<Error> errors)
      Constructor.
      Parameters:
      message - Error message.
  • Method Details

    • getMessage

      public String getMessage()
      Error message value.
      Returns:
      Error message value.
    • getErrors

      public List<Error> getErrors()
      Optionally returned by API, the specific fields with errors.
      Returns:
      List of specific field errors.
    • toString

      public String toString()
      Overrides:
      toString in class Object