Sha256: a10f1180a5a7ddb1b53397f41bc78ba7143b6755c1111ba5cd9a3452454f1282

Contents?: true

Size: 1.37 KB

Versions: 8

Compression:

Stored size: 1.37 KB

Contents

module Sym
  # All public exceptions of this library are here.
  module Errors
    # Exceptions superclass for this library.
    class Sym::Errors::Error < StandardError; end

    # No secret has been provided for encryption or decryption
    class InsufficientOptionsError < Sym::Errors::Error; end

    class PasswordError < Sym::Errors::Error; end
    class NoPasswordProvided < Sym::Errors::PasswordError; end
    class PasswordsDontMatch < Sym::Errors::PasswordError; end
    class PasswordTooShort < Sym::Errors::PasswordError; end

    class EditorExitedAbnormally < Sym::Errors::Error; end

    class FileNotFound < Sym::Errors::Error; end

    class DataEncodingVersionMismatch< Sym::Errors::Error; end

    class KeyError < Sym::Errors::Error; end
    class InvalidEncodingPrivateKey < Sym::Errors::KeyError; end
    class InvalidPasswordProvidedForThePrivateKey < Sym::Errors::KeyError; end
    class NoPrivateKeyFound < Sym::Errors::KeyError; end

    class NoDataProvided < Sym::Errors::Error; end

    class KeyChainCommandError < Sym::Errors::Error; end

    # Method was called on an abstract class. Override such methods in
    # subclasses, and use subclasses for instantiation of objects.
    class AbstractMethodCalled < ArgumentError
      def initialize(method, message = nil)
        super("Abstract method call, on #{method}" + (message || ''))
      end
    end
  end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sym-2.6.2 lib/sym/errors.rb
sym-2.6.1 lib/sym/errors.rb
sym-2.6.0 lib/sym/errors.rb
sym-2.5.3 lib/sym/errors.rb
sym-2.5.1 lib/sym/errors.rb
sym-2.5.0 lib/sym/errors.rb
sym-2.4.3 lib/sym/errors.rb
sym-2.3.0 lib/sym/errors.rb