Exception: AmplitudeExperiment::CycleError
- Inherits:
-
StandardError
- Object
- StandardError
- AmplitudeExperiment::CycleError
- Defined in:
- lib/experiment/error.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Raised when topological sorting encounters a cycle between flag dependencies.
Instance Method Summary collapse
-
#initialize(path) ⇒ CycleError
constructor
A new instance of CycleError.
- #to_s ⇒ Object
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
#path ⇒ Object (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_s ⇒ Object
44 45 46 |
# File 'lib/experiment/error.rb', line 44 def to_s "Detected a cycle between flags #{@path}" end |