Exception: Pushr::Daemon::DeliveryError
- Inherits:
-
StandardError
- Object
- StandardError
- Pushr::Daemon::DeliveryError
- Defined in:
- lib/pushr/daemon/delivery_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#notify ⇒ Object
readonly
Returns the value of attribute notify.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(code, message, description, source, notify = true) ⇒ DeliveryError
constructor
A new instance of DeliveryError.
- #message ⇒ Object
Constructor Details
#initialize(code, message, description, source, notify = true) ⇒ DeliveryError
Returns a new instance of DeliveryError.
6 7 8 9 10 11 12 |
# File 'lib/pushr/daemon/delivery_error.rb', line 6 def initialize(code, , description, source, notify = true) @code = code @message = @description = description @source = source @notify = notify end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/pushr/daemon/delivery_error.rb', line 4 def code @code end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/pushr/daemon/delivery_error.rb', line 4 def description @description end |
#notify ⇒ Object (readonly)
Returns the value of attribute notify.
4 5 6 |
# File 'lib/pushr/daemon/delivery_error.rb', line 4 def notify @notify end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
4 5 6 |
# File 'lib/pushr/daemon/delivery_error.rb', line 4 def source @source end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/pushr/daemon/delivery_error.rb', line 14 def "Unable to deliver message #{@message.to_json}, received #{@source} error #{@code} (#{@description})" end |