Sha256: cd6ae2866def23e9ee837b9b3d65afdf0b79af1e6231d7783cdd8ba826b53fcc
Contents?: true
Size: 1.41 KB
Versions: 2
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true module Karafka # Namespace used to encapsulate all the internal errors of Karafka module Errors # Base class for all the Karafka internal errors BaseError = Class.new(StandardError) # Should be raised when we attemp to parse incoming params but parsing fails # If this error (or its descendant) is detected, we will pass the raw message # into params and proceed further ParserError = Class.new(BaseError) # Raised when router receives topic name which does not correspond with any routes # This can only happen in a case when: # - you've received a message and we cannot match it with a controller # - you've changed the routing, so router can no longer associate your topic to # any controller # - or in a case when you do a lot of metaprogramming and you change routing/etc on runtime # # In case this happens, you will have to create a temporary route that will allow # you to "eat" everything from the Sidekiq queue. # @see https://github.com/karafka/karafka/issues/135 NonMatchingRouteError = Class.new(BaseError) # Raised when we don't use or use responder not in the way it expected to based on the # topics usage definitions InvalidResponderUsage = Class.new(BaseError) # Raised when configuration doesn't match with validation schema InvalidConfiguration = Class.new(BaseError) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
karafka-1.0.0 | lib/karafka/errors.rb |
karafka-1.0.0.rc1 | lib/karafka/errors.rb |