Exception: Skyfall::SubscriptionError
- Inherits:
-
StandardError
- Object
- StandardError
- Skyfall::SubscriptionError
- Defined in:
- lib/skyfall/errors.rb
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#error_type ⇒ Object
readonly
Returns the value of attribute error_type.
Instance Method Summary collapse
-
#initialize(error_type, error_message = nil) ⇒ SubscriptionError
constructor
A new instance of SubscriptionError.
Constructor Details
#initialize(error_type, error_message = nil) ⇒ SubscriptionError
Returns a new instance of SubscriptionError.
11 12 13 14 15 16 |
# File 'lib/skyfall/errors.rb', line 11 def initialize(error_type, = nil) @error_type = error_type @error_message = super("Subscription error: #{error_type}" + ( ? " (#{})" : "")) end |
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
9 10 11 |
# File 'lib/skyfall/errors.rb', line 9 def @error_message end |
#error_type ⇒ Object (readonly)
Returns the value of attribute error_type.
9 10 11 |
# File 'lib/skyfall/errors.rb', line 9 def error_type @error_type end |