Sha256: ec41534b83e2d31016304e6f41a9a11c124451dfee8bc88d87125b8aef8fe666

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

module Helene
  module Sdb
    class Base
      class Error < Helene::Error; end
      class RecordNotFound < Error; end
      class RecordInvalid < Error; end
      class RecordNotSaved < Error; end

      class << Base
        def error!(message)
          raise Error.new(message.to_s)
        end
      end

      def error!(message)
        self.class.error!(message)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ahoward-helene-0.0.3 lib/helene/sdb/base/error.rb