Exception: Flipper::DefaultNotSet

Inherits:
Error
  • Object
show all
Defined in:
lib/flipper/errors.rb

Overview

Raised when default instance not configured but there is an attempt to use it.

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ DefaultNotSet

Returns a new instance of DefaultNotSet.



18
19
20
21
22
# File 'lib/flipper/errors.rb', line 18

def initialize(message = nil)
  default = "Default flipper instance not configured. See " \
            "Flipper.configure for how to configure the default instance."
  super(message || default)
end