Sha256: 584b702b6fc50185cf4e0936ad5ea16a07d0b00d51c51665454b2ee4648107dc

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

module Shhh
  module Errors
    # Exceptions superclass for this library.
    class Shhh::Errors::Error < StandardError; end

    # No secret has been provided for encryption or decryption
    class NoPrivateKeyFound < Shhh::Errors::Error; end
    class PasswordsDontMatch < Shhh::Errors::Error; end
    class PasswordTooShort < Shhh::Errors::Error; end
    class DataEncodingVersionMismatch< Shhh::Errors::Error; end
    class EditorExitedAbnormally < Shhh::Errors::Error; end
    class InvalidEncodingPrivateKey < Shhh::Errors::Error; end
    class InvalidPasswordPrivateKey < Shhh::Errors::Error; end
    class FileNotFound < Shhh::Errors::Error; end
    class ExternalCommandError < Shhh::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

1 entries across 1 versions & 1 rubygems

Version Path
shhh-1.3.0 lib/shhh/errors.rb