Sha256: 37bd529862818f187befd94f42584feb6b932bbe526c0997eca6f806b7291fa0
Contents?: true
Size: 655 Bytes
Versions: 18
Compression:
Stored size: 655 Bytes
Contents
module AttrVault # Base class for AttrVault errors class Error < StandardError; end class InvalidSecret < AttrVault::Error; end class InvalidKey < AttrVault::Error; end class InvalidKeyring < AttrVault::Error; end class KeyringEmpty < AttrVault::Error; end class UnknownKey < AttrVault::Error def initialize(key_id) @key_id = key_id end def message formatted_id = if @key_id.nil? '<nil>' else @key_id end "No key with id #{formatted_id} found in keyring" end end class InvalidCiphertext < AttrVault::Error; end end
Version data entries
18 entries across 18 versions & 1 rubygems