class WarpEngine::CI::ApiError
Raised when the CI server answers with an error status or a body that is not JSON.
Attributes
The HTTP status code (Integer or nil) and the raw response body of the failed request.
The HTTP status code (Integer or nil) and the raw response body of the failed request.
Public Class Methods
# File lib/warp_engine/ci.rb, line 30 def initialize(message, status: nil, body: nil) super(message) @status = status @body = body end
Creates the error.
- message
-
the error message
- status
-
the HTTP status code of the response, if any
- body
-
the raw response body, if any
Calls superclass method