Exception: Creds::MissingKeyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/creds.rb

Constant Summary collapse

MESSAGE =
"Key :%<key>s missing from credentials in \"%<env>s\" env".freeze

Instance Method Summary collapse

Constructor Details

#initialize(key, env) ⇒ MissingKeyError

Returns a new instance of MissingKeyError.



32
33
34
# File 'lib/creds.rb', line 32

def initialize(key, env)
  super(format(MESSAGE, key: key, env: env))
end