Exception: SpookAndPay::Providers::Base::InvalidOptionsError
- Inherits:
-
StandardError
- Object
- StandardError
- SpookAndPay::Providers::Base::InvalidOptionsError
- Defined in:
- lib/spook_and_pay/providers/base.rb
Overview
An error used when validating the contents of an options hash. Since many of the methods on the provider classes take additional arguments as a Hash, it’s important to make sure we give good errors when they are missing.
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidOptionsError
constructor
A new instance of InvalidOptionsError.
- #to_s ⇒ Object
Constructor Details
#initialize(errors) ⇒ InvalidOptionsError
Returns a new instance of InvalidOptionsError.
24 25 26 |
# File 'lib/spook_and_pay/providers/base.rb', line 24 def initialize(errors) @errors = errors end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/spook_and_pay/providers/base.rb', line 28 def to_s "You have missed, or provided invalid options" end |