Exception: Sendly::ServerError
- Defined in:
- lib/sendly/errors.rb
Overview
Raised for server errors (5xx)
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Server error occurred", status_code: 500) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message = "Server error occurred", status_code: 500) ⇒ ServerError
Returns a new instance of ServerError.
90 91 92 |
# File 'lib/sendly/errors.rb', line 90 def initialize( = "Server error occurred", status_code: 500) super(, code: "SERVER_ERROR", status_code: status_code) end |