lib/rrj/errors/janus/janus.rb in ruby_rabbitmq_janus-2.0.0 vs lib/rrj/errors/janus/janus.rb in ruby_rabbitmq_janus-2.1.0.pre.128

- old
+ new

@@ -3,20 +3,33 @@ # @author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv> module RubyRabbitmqJanus module Errors # Define errors to message sending and response to janus - class Janus < RRJError + class BaseJanus < RRJError # Initialize a error standard for janus module # # @param [String] message Text returning in raise - def initialize(message) - super "[JANUS]#{message}", :fatal + def initialize(message, level) + super "[JANUS]#{message}", level end end end end -require 'rrj/errors/janus/janus_processus_keepalive' -require 'rrj/errors/janus/janus_message' -require 'rrj/errors/janus/janus_response' -require 'rrj/errors/janus/janus_transaction' +require 'rrj/errors/janus/processus/concurency' +require 'rrj/errors/janus/processus/keepalive' +require 'rrj/errors/janus/processus/event' + +require 'rrj/errors/janus/messages/message' +require 'rrj/errors/janus/messages/admin' +require 'rrj/errors/janus/messages/standard' + +require 'rrj/errors/janus/responses/response' +require 'rrj/errors/janus/responses/admin' +require 'rrj/errors/janus/responses/event' +require 'rrj/errors/janus/responses/standard' + +require 'rrj/errors/janus/transactions/transaction' +require 'rrj/errors/janus/transactions/admin' +require 'rrj/errors/janus/transactions/handle' +require 'rrj/errors/janus/transactions/session'