Exception: NuclearSecrets::SecretsMissingError

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) ⇒ 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

#messageObject



50
51
52
# File 'lib/nuclear_secrets/errors.rb', line 50

def message
  "You are not using a secret that is required in the secrets list: \n#{get_error_list}"
end