Sha256: b7b801c3cfab24d6d77e7ba015752301cef5422ff39c045a04ed670f94d6d0eb

Contents?: true

Size: 1.32 KB

Versions: 95

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true

module RubyRabbitmqJanus
  module Errors
    module Tools
      # Define a super class for all error in Option class
      class BaseOption < BaseTools
        def initialize(message, level)
          super("[Option] #{message}", level)
        end
      end

      module Option
        # Error for Tools::Option#initialize
        class Initialize < RubyRabbitmqJanus::Errors::Tools::BaseOption
          def initialize(msg)
            super "Error in initializer : #{msg}", :fatal
          end
        end

        # Error for Tools::Option#use_current_session?
        class UseCurrentSession < RubyRabbitmqJanus::Errors::Tools::BaseOption
          def initialize(opts)
            super "Error for test use current session -- #{opts}", :fatal
          end
        end

        # Error for Tools::Option#use_current_handle?
        class UseCurrentHandle < RubyRabbitmqJanus::Errors::Tools::BaseOption
          def initialize(opts)
            super "Error for test use current handle -- #{opts}", :fatal
          end
        end

        # Error for Tools::Option#cluster_mode
        class ClusterMode < RubyRabbitmqJanus::Errors::Tools::BaseOption
          def initialize
            super 'Error for create session in cluster mode disable', :fatal
          end
        end
      end
    end
  end
end

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.7.2.pre.319 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.318 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.317 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.316 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.315 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.314 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.312 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.310 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.309 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.308 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.307 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.306 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.305 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.302 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.297 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.296 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.286 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.285 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.2.pre.284 lib/rrj/errors/tools/gem/option.rb
ruby_rabbitmq_janus-2.7.1 lib/rrj/errors/tools/gem/option.rb