Exception: TrueTrial::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/truetrial/errors.rb

Overview

Raised when the server returns a 5xx error.

Instance Attribute Summary

Attributes inherited from Error

#response_body, #status_code

Instance Method Summary collapse

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(message = "Internal server error", status_code: 500, response_body: nil)
  super(message, status_code: status_code, response_body: response_body)
end