Exception: OneSignal::Rails::Plugin::DeliveryError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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

#responseObject (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