Exception: SshTresor::NoMatchingSlot

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

Overview

Raised when no loaded agent key can decrypt any slot in a tresor.

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.



40
41
42
43
44
45
46
47
# File 'lib/ssh_tresor/error.rb', line 40

def initialize
  super(
    "No matching slot found\n" \
    "Hint: Decryption requires a matching SSH agent signing capability, " \
    "not just the public key",
    exit_code: EXIT_KEY_NOT_FOUND
  )
end