Exception: SshTresor::NoMatchingSlot

Inherits:
Error
  • Object
show all
Defined in:
lib/ssh_tresor/error.rb

Constant Summary

Constants inherited from Error

Error::EXIT_AGENT_CONNECTION_FAILED, Error::EXIT_DECRYPTION_FAILED, Error::EXIT_GENERAL_ERROR, Error::EXIT_KEY_NOT_FOUND

Instance Attribute Summary

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

Constructor Details

#initializeNoMatchingSlot

Returns a new instance of NoMatchingSlot.



31
32
33
34
35
36
# File 'lib/ssh_tresor/error.rb', line 31

def initialize
  super(
    "No matching slot found\nHint: None of the keys in your SSH agent can decrypt this tresor",
    exit_code: EXIT_KEY_NOT_FOUND
  )
end