Exception: NuclearSecrets::SecretsMissingError
- Inherits:
-
NuclearSecretError
- Object
- StandardError
- NuclearSecretError
- NuclearSecrets::SecretsMissingError
- Defined in:
- lib/nuclear_secrets/errors.rb
Instance Method Summary collapse
-
#initialize(secrets) ⇒ SecretsMissingError
constructor
A new instance of SecretsMissingError.
- #message ⇒ Object
Methods inherited from NuclearSecretError
#get_error_list, #given_type_message, #required_type_message
Constructor Details
#initialize(secrets) ⇒ SecretsMissingError
Returns a new instance of SecretsMissingError.
46 47 48 |
# File 'lib/nuclear_secrets/errors.rb', line 46 def initialize(secrets) super(secrets: secrets) end |
Instance Method Details
#message ⇒ Object
50 51 52 |
# File 'lib/nuclear_secrets/errors.rb', line 50 def "You are not using a secret that is required in the secrets list: \n#{get_error_list}" end |