Exception: Creds::MissingKeyError Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

MESSAGE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

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

Instance Method Summary collapse

Constructor Details

#initialize(key, env) ⇒ MissingKeyError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MissingKeyError.



17
18
19
# File 'lib/creds/errors.rb', line 17

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