Sha256: e05301b7e21a606e319f7c3b4a9128e76a64d9fbc7e2f8acc2bb13fc82e03398

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

module MessageDriver
  class Exception < ::Exception; end

  class WrappedException < Exception
    attr_reader :other

    def initialize(other, msg=nil)
      super(msg || other.to_s)
      @other = other
    end
  end

  class QueueNotFound < WrappedException; end

  class ConnectionException < WrappedException; end

  class TransactionRollbackOnly < Exception; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message-driver-0.1.0 lib/message_driver/exceptions.rb