Sha256: a81554a75377a7930cf32360e9ff5c526d83cedf94d88197e14bf17d0f59f22d
Contents?: true
Size: 1.39 KB
Versions: 95
Compression:
Stored size: 1.39 KB
Contents
# frozen_string_literal: true module RubyRabbitmqJanus module Errors module Janus # Define a super class for all error in Janus::Message class BaseMessage < BaseJanus def initialize(message, level) super "[Message]#{message}", level end end module Message # Error for Janus::Message#initialize class Initializer < RubyRabbitmqJanus::Errors::Janus::BaseMessage def initialize super 'Error in initalizer' end end # Error for Janus::Message#to_json class ToJson < RubyRabbitmqJanus::Errors::Janus::BaseMessage def initialize super 'Error transform to json' end end # Error for Janus::Message#to_nice_json class ToNiceJson < RubyRabbitmqJanus::Errors::Janus::BaseMessage def initialize super 'Error transform to nice json' end end # Error for Janus::Message#to_hash class ToHash < RubyRabbitmqJanus::Errors::Janus::BaseMessage def initialize super 'Error transform to hash' end end # Error for Janus::Message#correlation class Correlation < RubyRabbitmqJanus::Errors::Janus::BaseMessage def initialize super 'Error return correlation information' end end end end end end
Version data entries
95 entries across 95 versions & 1 rubygems