Sha256: 86c137bfa909ea8b00a48d8043a2bf9bd60aaac6ae90f02b6d5721a7832cef3b

Contents?: true

Size: 655 Bytes

Versions: 16

Compression:

Stored size: 655 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 an actor.
  class GateNotFound < Error
    def initialize(actor)
      super "Could not find gate for #{actor.inspect}"
    end
  end

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

  # Raised when an invalid value is set to a configuration property
  class InvalidConfigurationValue < Flipper::Error
    def initialize(message = nil)
      default = "Configuration value is not valid."
      super(message || default)
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
flipper-1.3.2 lib/flipper/errors.rb
flipper-1.3.1 lib/flipper/errors.rb
flipper-1.3.0 lib/flipper/errors.rb
flipper-1.3.0.pre lib/flipper/errors.rb
flipper-1.2.2 lib/flipper/errors.rb
flipper-1.2.1 lib/flipper/errors.rb
flipper-1.2.0 lib/flipper/errors.rb
flipper-1.1.2 lib/flipper/errors.rb
flipper-1.1.1 lib/flipper/errors.rb
flipper-1.1.0 lib/flipper/errors.rb
flipper-1.0.0 lib/flipper/errors.rb
flipper-1.0.0.pre lib/flipper/errors.rb
flipper-0.28.3 lib/flipper/errors.rb
flipper-0.28.2 lib/flipper/errors.rb
flipper-0.28.1 lib/flipper/errors.rb
flipper-0.28.0 lib/flipper/errors.rb