Exception: TrueTrial::ServerError
- Defined in:
- lib/truetrial/errors.rb
Overview
Raised when the server returns a 5xx error.
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Internal server error", status_code: 500, response_body: nil) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message = "Internal server error", status_code: 500, response_body: nil) ⇒ ServerError
Returns a new instance of ServerError.
51 52 53 |
# File 'lib/truetrial/errors.rb', line 51 def initialize( = "Internal server error", status_code: 500, response_body: nil) super(, status_code: status_code, response_body: response_body) end |