Exception: NuclearSecrets::InvalidRequiredSecretValue

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



66
67
68
# File 'lib/nuclear_secrets/errors.rb', line 66

def initialize(secrets)
  super(secrets: secrets)
end

Instance Method Details

#messageObject



70
71
72
# File 'lib/nuclear_secrets/errors.rb', line 70

def message
  "You used an invalid secret: \n#{get_error_list}"
end