Sha256: c6ce7afa62e0bac23a205d60e0ad7cd6873eb9bcdf83ec23521589e8bfdb6808

Contents?: true

Size: 811 Bytes

Versions: 9

Compression:

Stored size: 811 Bytes

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
    #
    # Define an exception for initalizer transaction
    class JanusTransaction < Janus
      # Initialize a error for janus transaction class
      #
      # @param [String] message Text returning in raise
      def initialize(message)
        super "[Transaction]#{message}"
      end
    end

    # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
    #
    # Define an exception for running_handle
    class JanusTransactionHandle < JanusTransaction
      # Initialize a error for janus transaction handle class
      #
      # @param [String] message Text returning in raise
      def initialize(message)
        super "[Handle] #{message}"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.0.0.pre.108 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.106 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.101 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.100 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.97 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.96 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.95 lib/rrj/errors/janus/janus_transaction.rb
ruby_rabbitmq_janus-2.0.0.pre.42 lib/rrj/errors/janus/janus_transaction.rb