Exception: Rap::DependencyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rap/task.rb

Overview

Raised for circular dependencies during Rap::Task.resolve!

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#traceObject (readonly)

Returns the value of attribute trace.



308
309
310
# File 'lib/rap/task.rb', line 308

def trace
  @trace
end

Instance Method Details

#messageObject



315
316
317
# File 'lib/rap/task.rb', line 315

def message
  "circular dependency: [#{trace.collect {|task| task.class.to_s }.join(', ')}]"
end