Exception: NuclearSecrets::ExtraSecretsError
- Inherits:
-
NuclearSecretError
- Object
- StandardError
- NuclearSecretError
- NuclearSecrets::ExtraSecretsError
- Defined in:
- lib/nuclear_secrets/errors.rb
Instance Method Summary collapse
-
#initialize(secrets) ⇒ ExtraSecretsError
constructor
A new instance of ExtraSecretsError.
- #message ⇒ Object
Methods inherited from NuclearSecretError
#get_error_list, #given_type_message, #required_type_message
Constructor Details
#initialize(secrets) ⇒ ExtraSecretsError
Returns a new instance of ExtraSecretsError.
56 57 58 |
# File 'lib/nuclear_secrets/errors.rb', line 56 def initialize(secrets) super(secrets: secrets) end |
Instance Method Details
#message ⇒ Object
60 61 62 |
# File 'lib/nuclear_secrets/errors.rb', line 60 def "You have used a secret that is not in included in the secrets list: \n#{get_error_list}" end |