Exception: Sendly::ServerError

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

Overview

Raised for server errors (5xx)

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #status_code

Instance Method Summary collapse

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(message = "Server error occurred", status_code: 500)
  super(message, code: "SERVER_ERROR", status_code: status_code)
end