Sha256: 38ea6baf299466bda4e718e51d5bf9c429fa5cd7d29060894e4ce4af13ca74fd

Contents?: true

Size: 654 Bytes

Versions: 12

Compression:

Stored size: 654 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 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

12 entries across 12 versions & 1 rubygems

Version Path
flipper-0.27.1 lib/flipper/errors.rb
flipper-0.27.0 lib/flipper/errors.rb
flipper-0.26.2 lib/flipper/errors.rb
flipper-0.26.1 lib/flipper/errors.rb
flipper-0.26.0 lib/flipper/errors.rb
flipper-0.26.0.rc2 lib/flipper/errors.rb
flipper-0.26.0.rc1 lib/flipper/errors.rb
flipper-0.25.4 lib/flipper/errors.rb
flipper-0.25.3 lib/flipper/errors.rb
flipper-0.25.2 lib/flipper/errors.rb
flipper-0.25.1 lib/flipper/errors.rb
flipper-0.25.0 lib/flipper/errors.rb