ruby_rabbitmq_janus 3.0.0.pre.384 → 4.0.0.pre.850041590

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -6
  3. data/config/default.yml +5 -5
  4. data/lib/rrj/errors/error.rb +3 -1
  5. data/lib/rrj/errors/janus/janus.rb +10 -11
  6. data/lib/rrj/errors/janus/responses/admin.rb +1 -1
  7. data/lib/rrj/errors/janus/responses/event.rb +1 -1
  8. data/lib/rrj/errors/janus/responses/standard.rb +1 -1
  9. data/lib/rrj/errors/rabbit/rabbit.rb +40 -13
  10. data/lib/rrj/errors/tools/tools.rb +45 -9
  11. data/lib/rrj/info.rb +1 -1
  12. data/lib/rrj/models/active_record.rb +1 -3
  13. data/lib/rrj/process/concurrency.rb +3 -9
  14. data/lib/rrj/rabbit/connect.rb +7 -5
  15. data/lib/rrj/tools/gem/config.rb +1 -1
  16. data/lib/rrj/tools/gem/config/gem.rb +1 -1
  17. data/lib/rrj/tools/gem/config/janus.rb +2 -0
  18. data/lib/rrj/tools/gem/config/queues.rb +8 -0
  19. data/lib/rrj/tools/gem/config/rabbit.rb +2 -0
  20. data/lib/rrj/tools/replaces/replace.rb +2 -2
  21. data/spec/config/database.yml +1 -0
  22. data/spec/ruby_rabbitmq_janus/models/janus_instance_instance_spec.rb +1 -1
  23. data/spec/ruby_rabbitmq_janus/rrj_admin_add_token_spec.rb +1 -0
  24. data/spec/ruby_rabbitmq_janus/rrj_admin_allow_token_spec.rb +1 -0
  25. data/spec/ruby_rabbitmq_janus/rrj_admin_disallow_token_spec.rb +1 -0
  26. data/spec/ruby_rabbitmq_janus/rrj_admin_handle_info_spec.rb +1 -0
  27. data/spec/ruby_rabbitmq_janus/{rrj_admin_list_handles_spec.Rb → rrj_admin_list_handles_spec.rb} +1 -0
  28. data/spec/ruby_rabbitmq_janus/rrj_admin_list_sessions_spec.rb +1 -0
  29. data/spec/ruby_rabbitmq_janus/rrj_admin_list_tokens_spec.rb +1 -0
  30. data/spec/ruby_rabbitmq_janus/rrj_admin_remove_token_spec.rb +1 -0
  31. data/spec/ruby_rabbitmq_janus/rrj_admin_set_libnice_debug_spec.rb +1 -0
  32. data/spec/ruby_rabbitmq_janus/rrj_admin_set_locking_debug_spec.rb +1 -0
  33. data/spec/ruby_rabbitmq_janus/rrj_admin_set_log_colors_spec.rb +1 -0
  34. data/spec/ruby_rabbitmq_janus/rrj_admin_set_log_level_spec.rb +1 -0
  35. data/spec/ruby_rabbitmq_janus/rrj_admin_set_log_timestamps_spec.rb +1 -0
  36. data/spec/ruby_rabbitmq_janus/rrj_admin_set_max_nack_queue_spec.rb +1 -0
  37. data/spec/ruby_rabbitmq_janus/rrj_admin_set_no_media_timer_spec.rb +1 -0
  38. data/spec/ruby_rabbitmq_janus/rrj_admin_set_session_timeout_spec.rb +1 -0
  39. data/spec/ruby_rabbitmq_janus/rrj_admin_start_pcap_spec.rb +1 -0
  40. data/spec/ruby_rabbitmq_janus/rrj_admin_start_text2pcap_spec.rb +1 -0
  41. data/spec/ruby_rabbitmq_janus/rrj_admin_stop_pcap_spec.rb +1 -0
  42. data/spec/ruby_rabbitmq_janus/rrj_admin_stop_text2pcap_spec.rb +1 -0
  43. data/spec/ruby_rabbitmq_janus/rrj_answer_spec.rb +1 -0
  44. data/spec/ruby_rabbitmq_janus/rrj_attach_spec.rb +1 -0
  45. data/spec/ruby_rabbitmq_janus/rrj_create_spec.rb +1 -0
  46. data/spec/ruby_rabbitmq_janus/rrj_destroy_spec.rb +1 -0
  47. data/spec/ruby_rabbitmq_janus/rrj_detach_spec.rb +1 -0
  48. data/spec/ruby_rabbitmq_janus/rrj_info_spec.rb +1 -0
  49. data/spec/ruby_rabbitmq_janus/rrj_keepalive_spec.rb +1 -0
  50. data/spec/ruby_rabbitmq_janus/rrj_offer_spec.rb +1 -0
  51. data/spec/ruby_rabbitmq_janus/rrj_trickle_spec.rb +1 -0
  52. data/spec/ruby_rabbitmq_janus/rrj_trickles_spec.rb +2 -1
  53. data/spec/spec_helper.rb +34 -31
  54. data/spec/support/examples_thread.rb +5 -5
  55. metadata +150 -139
  56. data/lib/rrj/errors/base/admin.rb +0 -24
  57. data/lib/rrj/errors/base/base.rb +0 -5
  58. data/lib/rrj/errors/base/init.rb +0 -46
  59. data/lib/rrj/errors/base/task.rb +0 -32
  60. data/lib/rrj/errors/janus/messages/admin.rb +0 -33
  61. data/lib/rrj/errors/janus/messages/message.rb +0 -51
  62. data/lib/rrj/errors/janus/messages/standard.rb +0 -33
  63. data/lib/rrj/errors/janus/responses/base.rb +0 -15
  64. data/lib/rrj/errors/janus/transactions/admin.rb +0 -37
  65. data/lib/rrj/errors/janus/transactions/handle.rb +0 -52
  66. data/lib/rrj/errors/janus/transactions/session.rb +0 -38
  67. data/lib/rrj/errors/janus/transactions/transaction.rb +0 -23
  68. data/lib/rrj/errors/rabbit/base_event.rb +0 -25
  69. data/lib/rrj/errors/rabbit/connect.rb +0 -65
  70. data/lib/rrj/errors/rabbit/listener/base.rb +0 -46
  71. data/lib/rrj/errors/rabbit/listener/from.rb +0 -19
  72. data/lib/rrj/errors/rabbit/listener/from_admin.rb +0 -19
  73. data/lib/rrj/errors/rabbit/propertie.rb +0 -37
  74. data/lib/rrj/errors/rabbit/publisher/admin.rb +0 -32
  75. data/lib/rrj/errors/rabbit/publisher/base.rb +0 -39
  76. data/lib/rrj/errors/rabbit/publisher/exclusive.rb +0 -33
  77. data/lib/rrj/errors/rabbit/publisher/keepalive.rb +0 -19
  78. data/lib/rrj/errors/rabbit/publisher/non_exclusive.rb +0 -33
  79. data/lib/rrj/errors/tools/gem/cluster.rb +0 -42
  80. data/lib/rrj/errors/tools/gem/config.rb +0 -121
  81. data/lib/rrj/errors/tools/gem/log.rb +0 -81
  82. data/lib/rrj/errors/tools/gem/option.rb +0 -44
  83. data/lib/rrj/errors/tools/gem/request.rb +0 -23
  84. data/lib/rrj/errors/tools/replaces/replace.rb +0 -30
  85. data/lib/rrj/errors/tools/replaces/type.rb +0 -30
  86. data/tmp/coverage/assets/0.10.2/application.css +0 -799
  87. data/tmp/coverage/assets/0.10.2/application.js +0 -1707
  88. data/tmp/coverage/assets/0.10.2/colorbox/border.png +0 -0
  89. data/tmp/coverage/assets/0.10.2/colorbox/controls.png +0 -0
  90. data/tmp/coverage/assets/0.10.2/colorbox/loading.gif +0 -0
  91. data/tmp/coverage/assets/0.10.2/colorbox/loading_background.png +0 -0
  92. data/tmp/coverage/assets/0.10.2/favicon_green.png +0 -0
  93. data/tmp/coverage/assets/0.10.2/favicon_red.png +0 -0
  94. data/tmp/coverage/assets/0.10.2/favicon_yellow.png +0 -0
  95. data/tmp/coverage/assets/0.10.2/loading.gif +0 -0
  96. data/tmp/coverage/assets/0.10.2/magnify.png +0 -0
  97. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  98. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
  99. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  100. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  101. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
  102. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  103. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  104. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  105. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png +0 -0
  106. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
  107. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png +0 -0
  108. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png +0 -0
  109. data/tmp/coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
  110. data/tmp/coverage/index.html +0 -21339
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
4
-
5
- module RubyRabbitmqJanus
6
- # Define all error in gem
7
- module Errors
8
- # Define a super class for all errors in RRJ Class
9
- class BaseRRJAdmin < RRJError
10
- def initalize(message, level)
11
- super "[RRJAdmin] #{message}", level
12
- end
13
- end
14
-
15
- module RRJAdmin
16
- # Error for RRJAdmin#admin_endpoint
17
- class StartTransactionAdmin < RubyRabbitmqJanus::Errors::BaseRRJAdmin
18
- def initialize(opts)
19
- super "Transaction admin failed with -- #{opts}", :fatal
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'rrj/errors/base/init'
4
- require 'rrj/errors/base/admin'
5
- require 'rrj/errors/base/task'
@@ -1,46 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
4
-
5
- module RubyRabbitmqJanus
6
- # Define all error in gem
7
- module Errors
8
- # Define a super class for all errors in RRJ Class
9
- class BaseRRJ < RRJError
10
- def initalize(message, level)
11
- super "[RRJ] #{message}", level
12
- end
13
- end
14
-
15
- module RRJ
16
- # Error for RRJ#initialize
17
- class InstanciateGem < RubyRabbitmqJanus::Errors::BaseRRJ
18
- def initialize(message)
19
- super "Gem is not instanciate correctly : #{message}", :fatal
20
- end
21
- end
22
-
23
- # Error for RRJ#session_endpoint_public
24
- class StartTransaction < RubyRabbitmqJanus::Errors::BaseRRJ
25
- def initialize(exclu, opts)
26
- super "Transaction failed with -- #{opts} in queue #{exclu}", :fatal
27
- end
28
- end
29
-
30
- # Error for RRJ#session_endpoint_public_handle
31
- class StartTransactionHandle < RubyRabbitmqJanus::Errors::BaseRRJ
32
- def initialize(exclu, opts)
33
- super "Transaction handle failed with -- #{opts} in queue #{exclu}",
34
- :fatal
35
- end
36
- end
37
-
38
- # Error for RRJ#cleanup_connection
39
- class CleanupConnection < RubyRabbitmqJanus::Errors::BaseRRJ
40
- def initialize
41
- super 'Error for cleanup Janus Instances', :warn
42
- end
43
- end
44
- end
45
- end
46
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
4
-
5
- module RubyRabbitmqJanus
6
- # Define all error in gem
7
- module Errors
8
- # Define a super class for all errors in RRJ Class
9
- class BaseRRJTask < RRJError
10
- def initialize(message, level = :fatal)
11
- super "[RRJAdmin]#{message}", level
12
- end
13
- end
14
-
15
- module RRJTask
16
- # Error for RRJTask#initialize
17
- class Initialize < BaseRRJTask
18
- def initialize
19
- super '[Task] Error in initializer'
20
- end
21
- end
22
-
23
- # Error for RRJTask#handle_endpoint_public
24
- class StartTransactionHandle < BaseRRJTask
25
- def initialize(exclu, opts)
26
- super '[Task] Transaction admin failed with -- ' \
27
- "#{opts} in queue #{exclu}", :fatal
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- # Define errors to message sending and response to janus
8
- module Janus
9
- # Define a super class for all error in Janus::MessageAdmin
10
- class BaseMessageAdmin < BaseMessage
11
- def initialize(message, level = :fatal)
12
- super "[Admin] #{message}", level
13
- end
14
- end
15
-
16
- module MessageAdmin
17
- # Error Janus::MessageAdmin#initialize
18
- class Initializer < BaseMessageAdmin
19
- def initialize
20
- super 'Error in initializer'
21
- end
22
- end
23
-
24
- # Error Janus::MessageAdmin#options
25
- class Options < BaseMessageAdmin
26
- def initialize
27
- super 'Return properties message admin failed'
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,51 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- # Define a super class for all error in Janus::Message
7
- class BaseMessage < RubyRabbitmqJanus::Errors::RRJError
8
- def initialize(message, level)
9
- super "[Message]#{message}", level
10
- end
11
- end
12
-
13
- module Message
14
- # Error for Janus::Message#initialize
15
- class Initializer < RubyRabbitmqJanus::Errors::Janus::BaseMessage
16
- def initialize
17
- super 'Error in initalizer'
18
- end
19
- end
20
-
21
- # Error for Janus::Message#to_json
22
- class ToJson < RubyRabbitmqJanus::Errors::Janus::BaseMessage
23
- def initialize
24
- super 'Error transform to json'
25
- end
26
- end
27
-
28
- # Error for Janus::Message#to_nice_json
29
- class ToNiceJson < RubyRabbitmqJanus::Errors::Janus::BaseMessage
30
- def initialize
31
- super 'Error transform to nice json'
32
- end
33
- end
34
-
35
- # Error for Janus::Message#to_hash
36
- class ToHash < RubyRabbitmqJanus::Errors::Janus::BaseMessage
37
- def initialize
38
- super 'Error transform to hash'
39
- end
40
- end
41
-
42
- # Error for Janus::Message#correlation
43
- class Correlation < RubyRabbitmqJanus::Errors::Janus::BaseMessage
44
- def initialize
45
- super 'Error return correlation information'
46
- end
47
- end
48
- end
49
- end
50
- end
51
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- # Define errors to message sending and response to janus
8
- module Janus
9
- # Define a super class for all error in Janus::Message
10
- class BaseMessageStandard < BaseMessage
11
- def initialize(message, level = :fatal)
12
- super "[Standard] #{message}", level
13
- end
14
- end
15
-
16
- module MessageStandard
17
- # Error for Janus::MessageStandard#initialize
18
- class Initializer < BaseMessageStandard
19
- def initialize
20
- super 'Error in initializer'
21
- end
22
- end
23
-
24
- # Error for Janus::MessageStandard#option
25
- class Option < BaseMessageStandard
26
- def initialize
27
- super 'Return properties message admin failed'
28
- end
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- module Responses
7
- class Base < RubyRabbitmqJanus::Errors::RRJError
8
- def initialize(klass, message, level = :warn)
9
- super "[Response][#{klass}] #{message}", level
10
- end
11
- end
12
- end
13
- end
14
- end
15
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- # Define a super class for error in Janus::Transactions::TransactionAdmin
7
- class BaseTransactionAdmin < BaseTransaction
8
- def initialize(message, level = :fatal)
9
- super "[Admin] #{message}", level
10
- end
11
- end
12
-
13
- module TransactionAdmin
14
- # Error for Janus::Transactions::TransactionAdmin#initialize
15
- class Initialize < BaseTransactionAdmin
16
- def initialize
17
- super 'Error in initializer'
18
- end
19
- end
20
-
21
- # Error for Janus::Transactions::TransactionAdmin#connect
22
- class Connect < BaseTransactionAdmin
23
- def initialize
24
- super 'Error to connection RabbitMQ'
25
- end
26
- end
27
-
28
- # Error for Janus::Transactions::TransactionAdmin#publish_message
29
- class PublishMessage < BaseTransactionAdmin
30
- def initialize
31
- super 'Error for publishing message in RabbitMQ'
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,52 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- # Define a super class for error in Janus::Transactions::TransactionHandle
7
- class BaseTransactionHandle < BaseTransaction
8
- def initialize(message, level = :fatal)
9
- super "[Handle] #{message}", level
10
- end
11
- end
12
-
13
- module TransactionHandle
14
- # Error for Janus::Transactions::TransactionHandle#initialize
15
- class Initialize < Errors::Janus::BaseTransactionHandle
16
- def initialize
17
- super 'Error in initializer'
18
- end
19
- end
20
-
21
- # Error for Janus::Transactions::TransactionHandle#connect
22
- class Connect < Errors::Janus::BaseTransactionHandle
23
- def initialize
24
- super 'Error for connect to RabbitMQ'
25
- end
26
- end
27
-
28
- # Error for Janus::Transactions::TransactionHandle#publish_message
29
- class PublishMessage < Errors::Janus::BaseTransactionHandle
30
- def initialize
31
- super 'Error for publishing message'
32
- end
33
- end
34
-
35
- # Error for Janus::Transactions::TransactionHandle#detach
36
- class Detach < Errors::Janus::BaseTransactionHandle
37
- def initialize
38
- super 'Error for sending message to type detach'
39
- end
40
- end
41
-
42
- # Error for Janus::Transactions::TransactionHandle#detach_for_deleteing
43
- class DetachForDeleting < Errors::Janus::BaseTransactionHandle
44
- def initialize
45
- super 'Error for sending message detach ' \
46
- 'and update in database Janus instance'
47
- end
48
- end
49
- end
50
- end
51
- end
52
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- # Define a super class for all errors in
7
- # Janus::Transactions::TransactionSessions
8
- class BaseTransactionSessions < BaseTransaction
9
- def initialize(message, level = :fatal)
10
- super "[Sessions] #{message}", level
11
- end
12
- end
13
-
14
- module TransactionSessions
15
- # Error for Janus::Transactions::TransactionSessions#initialize
16
- class Initialize < BaseTransactionSessions
17
- def initialize
18
- super 'Error in initializer'
19
- end
20
- end
21
-
22
- # Error for Janus::Transactions::TransactionSessions#connect
23
- class Connect < BaseTransactionSessions
24
- def initialize
25
- super 'Error for connect to RabbitMQ'
26
- end
27
- end
28
-
29
- # Error for Janus::Transactions::TransactionSessions#publish_message
30
- class PublishMessage < BaseTransactionSessions
31
- def initialize
32
- super 'Error for publishing message'
33
- end
34
- end
35
- end
36
- end
37
- end
38
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Janus
6
- # Define a super class for all errors in Janus::Transactions::Transaction
7
- class BaseTransaction < RubyRabbitmqJanus::Errors::RRJError
8
- def initialize(message, level = :fatal)
9
- super "[Transaction]#{message}", level
10
- end
11
- end
12
-
13
- module Transaction
14
- # Error for Janus::Transactions::Transaction#initialize
15
- class Initialize < RubyRabbitmqJanus::Errors::Janus::BaseTransaction
16
- def initialize
17
- super 'Error in initializer'
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,25 +0,0 @@
1
- # frozen-string_literal: true
2
-
3
- # :reek:IrresponsibleModule
4
-
5
- module RubyRabbitmqJanus
6
- module Errors
7
- module Rabbit
8
- # Error class for all Event
9
- class Event < BaseRabbit
10
- def initialize(message, level = :fatal)
11
- super("[Connect] #{message}", level)
12
- end
13
- end
14
-
15
- module BaseEvent
16
- # Error class for Rabbit BaseEvent
17
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::Event
18
- def initialize
19
- super 'Error in intializer BaseEvent'
20
- end
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,65 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RubyRabbitmqJanus
4
- module Errors
5
- module Rabbit
6
- # Define a super class for all error in Option class
7
- class BaseConnect < BaseRabbit
8
- def initialize(message, level = :fatal)
9
- super("[Connect] #{message}", level)
10
- end
11
- end
12
-
13
- module Connect
14
- # Error for Rabbit::Connect#initialize
15
- class Initialize < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
16
- def initialize(error)
17
- super "Error in initializer #{error}"
18
- end
19
- end
20
-
21
- # Error when transaction hs no block
22
- class MissingAction < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
23
- def initialize
24
- super 'Transaction failed, missing block'
25
- end
26
- end
27
-
28
- # Error for Rabbit::Connect#transaction_short
29
- class TransactionShort < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
30
- def initialize(error)
31
- super "Error during transaction with RabbitMQ #{error}"
32
- end
33
- end
34
-
35
- # Error for Rabbit::Connect#transaction_long
36
- class TransactionLong < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
37
- def initialize(error)
38
- super "Error during transaction with RabbitMQ #{error}"
39
- end
40
- end
41
-
42
- # Error for Rabbit::Connect#start
43
- class Start < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
44
- def initialize(error)
45
- super "Error for starting connection with RabbitMQ #{error}"
46
- end
47
- end
48
-
49
- # Error for Rabbit::Connect#close
50
- class Close < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
51
- def initialize(error)
52
- super "Error for closing connection with RabbitMQ #{error}"
53
- end
54
- end
55
-
56
- # Error for Rabbit::Connect#channel
57
- class Channel < RubyRabbitmqJanus::Errors::Rabbit::BaseConnect
58
- def initialize(error)
59
- super "Error for create channel in RabbitMQ instance #{error}"
60
- end
61
- end
62
- end
63
- end
64
- end
65
- end