Exception: HealthCards::InvalidKeyError

Inherits:
HealthCardsError show all
Defined in:
lib/health_cards/errors.rb

Overview

Exception thrown when an invalid key (public or private) is provided

Instance Method Summary collapse

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