Exception: Skyfall::SubscriptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/skyfall/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, error_message = nil)
  @error_type = error_type
  @error_message = error_message

  super("Subscription error: #{error_type}" + (error_message ? " (#{error_message})" : ""))
end

Instance Attribute Details

#error_messageObject (readonly)

Returns the value of attribute error_message.



9
10
11
# File 'lib/skyfall/errors.rb', line 9

def error_message
  @error_message
end

#error_typeObject (readonly)

Returns the value of attribute error_type.



9
10
11
# File 'lib/skyfall/errors.rb', line 9

def error_type
  @error_type
end