Exception: HealthCards::InvalidKeyError
- Inherits:
-
HealthCardsError
- Object
- StandardError
- HealthCardsError
- HealthCards::InvalidKeyError
- Defined in:
- lib/health_cards/errors.rb
Overview
Exception thrown when an invalid key (public or private) is provided
Instance Method Summary collapse
-
#initialize(expected_class, actual_obj) ⇒ InvalidKeyError
constructor
A new instance of InvalidKeyError.
Constructor Details
#initialize(expected_class, actual_obj) ⇒ InvalidKeyError
Returns a new instance of InvalidKeyError.
65 66 67 |
# File 'lib/health_cards/errors.rb', line 65 def initialize(expected_class, actual_obj) super("Expected an instance of #{expected_class} but was #{actual_obj.class}") end |