Exception: AmplitudeExperiment::CycleError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/experiment/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ CycleError



39
40
41
42
# File 'lib/experiment/error.rb', line 39

def initialize(path)
  super
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Raised when topological sorting encounters a cycle between flag dependencies.



37
38
39
# File 'lib/experiment/error.rb', line 37

def path
  @path
end

Instance Method Details

#to_sObject



44
45
46
# File 'lib/experiment/error.rb', line 44

def to_s
  "Detected a cycle between flags #{@path}"
end