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

Version Path
attr_vault-2.1.2 lib/attr_vault/errors.rb
attr_vault-2.1.1 lib/attr_vault/errors.rb
attr_vault-2.1.0 lib/attr_vault/errors.rb
attr_vault-2.0.0 lib/attr_vault/errors.rb
attr_vault-1.0.1 lib/attr_vault/errors.rb
attr_vault-1.0.0 lib/attr_vault/errors.rb
attr_vault-0.2.1 lib/attr_vault/errors.rb
attr_vault-0.2.0 lib/attr_vault/errors.rb
attr_vault-0.1.2 lib/attr_vault/errors.rb
attr_vault-0.1.1 lib/attr_vault/errors.rb
attr_vault-0.0.9 lib/attr_vault/errors.rb
attr_vault-0.0.8 lib/attr_vault/errors.rb
attr_vault-0.0.7 lib/attr_vault/errors.rb
attr_vault-0.0.6 lib/attr_vault/errors.rb
attr_vault-0.0.4 lib/attr_vault/errors.rb
attr_vault-0.0.3 lib/attr_vault/errors.rb
attr_vault-0.0.2 lib/attr_vault/errors.rb
attr_vault-0.0.1 lib/attr_vault/errors.rb