Sha256: 3319ce821a23b1d25ae6580b8e6a59f85d80310e4d0f8d828eb116a08f67853e

Contents?: true

Size: 512 Bytes

Versions: 31

Compression:

Stored size: 512 Bytes

Contents

module Flipper
  # Top level error that all other errors inherit from.
  class Error < StandardError; end

  # Raised when gate can not be found for a thing.
  class GateNotFound < Error
    def initialize(thing)
      super "Could not find gate for #{thing.inspect}"
    end
  end

  # Raised when attempting to declare a group name that has already been used.
  class DuplicateGroup < Error; end

  # Raised when attempting to access a group that is not registered.
  class GroupNotRegistered < Error; end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
flipper-0.11.0.beta6 lib/flipper/errors.rb
flipper-0.11.0.beta5 lib/flipper/errors.rb
flipper-0.11.0.beta4 lib/flipper/errors.rb
flipper-0.11.0.beta3 lib/flipper/errors.rb
flipper-0.11.0.beta1 lib/flipper/errors.rb
flipper-0.10.2 lib/flipper/errors.rb
flipper-0.10.1 lib/flipper/errors.rb
flipper-0.10.0 lib/flipper/errors.rb
flipper-0.9.2 lib/flipper/errors.rb
flipper-0.9.1 lib/flipper/errors.rb
flipper-0.9.0 lib/flipper/errors.rb
flipper-0.9.0.beta1 lib/flipper/errors.rb
flipper-0.8.0 lib/flipper/errors.rb
flipper-0.7.5 lib/flipper/errors.rb
flipper-0.7.4 lib/flipper/errors.rb
flipper-0.7.3 lib/flipper/errors.rb
flipper-0.7.2 lib/flipper/errors.rb
flipper-0.7.1 lib/flipper/errors.rb
flipper-0.7.0 lib/flipper/errors.rb
flipper-0.7.0.beta6 lib/flipper/errors.rb