Exception: Rap::DependencyError
- Inherits:
-
StandardError
- Object
- StandardError
- Rap::DependencyError
- Defined in:
- lib/rap/task.rb
Overview
Raised for circular dependencies during Rap::Task.resolve!
Instance Attribute Summary collapse
-
#trace ⇒ Object
readonly
Returns the value of attribute trace.
Instance Method Summary collapse
-
#initialize(task) ⇒ DependencyError
constructor
A new instance of DependencyError.
- #message ⇒ Object
Constructor Details
#initialize(task) ⇒ DependencyError
Returns a new instance of DependencyError.
310 311 312 313 |
# File 'lib/rap/task.rb', line 310 def initialize(task) @trace = [task] super() end |
Instance Attribute Details
#trace ⇒ Object (readonly)
Returns the value of attribute trace.
308 309 310 |
# File 'lib/rap/task.rb', line 308 def trace @trace end |
Instance Method Details
#message ⇒ Object
315 316 317 |
# File 'lib/rap/task.rb', line 315 def "circular dependency: [#{trace.collect {|task| task.class.to_s }.join(', ')}]" end |