Sha256: 2186b644aafda84d34dc98c46924ef626670ea00978c271fe337a1bfdf8729f8

Contents?: true

Size: 608 Bytes

Versions: 7

Compression:

Stored size: 608 Bytes

Contents

# frozen_string_literal: true

module WaterDrop
  # Namespace used to encapsulate all the internal errors of WaterDrop
  module Errors
    # Base class for all the WaterDrop internal errors
    BaseError = Class.new(StandardError)

    # Raised when configuration doesn't match with validation schema
    InvalidConfiguration = Class.new(BaseError)

    # Raised when we try to send message with invalid optionss
    InvalidMessageOptions = Class.new(BaseError)

    # Raised when want to hook up to an event that is not registered and supported
    UnregisteredMonitorEvent = Class.new(BaseError)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
waterdrop-1.2.5 lib/water_drop/errors.rb
waterdrop-1.2.4 lib/water_drop/errors.rb
waterdrop-1.2.3 lib/water_drop/errors.rb
waterdrop-1.2.2 lib/water_drop/errors.rb
waterdrop-1.2.1 lib/water_drop/errors.rb
waterdrop-1.2.0 lib/water_drop/errors.rb
waterdrop-1.2.0.beta1 lib/water_drop/errors.rb