Sha256: e75bd92905ba27ed42b6b1ed3618874db87db37394852ebdc592c2ba58049d0e
Contents?: true
Size: 1.29 KB
Versions: 89
Compression:
Stored size: 1.29 KB
Contents
# frozen_string_literal: true # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv> module RubyRabbitmqJanus # Define all error in gem module Errors # Define a super class for all errors in RRJ Class class BaseRRJ < RRJError def initalize(message, level) super "[RRJ] #{message}", level end end module RRJ # Error for RRJ#initialize class InstanciateGem < RubyRabbitmqJanus::Errors::BaseRRJ def initialize(message) super "Gem is not instanciate correctly : #{message}", :fatal end end # Error for RRJ#start_transaction class StartTransaction < RubyRabbitmqJanus::Errors::BaseRRJ def initialize(exclu, opts) super "Transaction failed with -- #{opts} in queue #{exclu}", :fatal end end # Error for RRJ#start_transaction_handle class StartTransactionHandle < RubyRabbitmqJanus::Errors::BaseRRJ def initialize(exclu, opts) super "Transaction handle failed with -- #{opts} in queue #{exclu}", :fatal end end # Error for RRJ#cleanup_connection class CleanupConnection < RubyRabbitmqJanus::Errors::BaseRRJ def initialize super 'Error for cleanup Janus Instances', :warn end end end end end
Version data entries
89 entries across 89 versions & 1 rubygems