Exception: OneSignal::Rails::Plugin::DeliveryError
- Inherits:
-
StandardError
- Object
- StandardError
- OneSignal::Rails::Plugin::DeliveryError
- Defined in:
- lib/onesignal/rails/plugin/delivery_error.rb
Overview
Provides a custom exception for when OneSignal is unable to deliver a mail.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
The response from the OneSignal API, if a response exists.
Instance Method Summary collapse
-
#initialize(msg = 'OneSignal Delivery Error', response = nil) ⇒ DeliveryError
constructor
A new instance of DeliveryError.
Constructor Details
#initialize(msg = 'OneSignal Delivery Error', response = nil) ⇒ DeliveryError
Returns a new instance of DeliveryError.
12 13 14 15 |
# File 'lib/onesignal/rails/plugin/delivery_error.rb', line 12 def initialize(msg = 'OneSignal Delivery Error', response = nil) @response = response super(msg) end |
Instance Attribute Details
#response ⇒ Object (readonly)
The response from the OneSignal API, if a response exists.
10 11 12 |
# File 'lib/onesignal/rails/plugin/delivery_error.rb', line 10 def response @response end |