Exception: NuclearSecrets::ExtraSecretsError

Inherits:
NuclearSecretError show all
Defined in:
lib/nuclear_secrets/errors.rb

Instance Method Summary collapse

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

#messageObject



60
61
62
# File 'lib/nuclear_secrets/errors.rb', line 60

def message
  "You have used a secret that is not in included in the secrets list: \n#{get_error_list}"
end