Exception: Darkroom::CircularReferenceError

Inherits:
AssetError
  • Object
show all
Defined in:
lib/darkroom/errors/circular_reference_error.rb

Overview

Error class used when an asset reference results in a circular reference chain.

Instance Attribute Summary

Attributes inherited from AssetError

#detail, #source_line_num, #source_path

Instance Method Summary collapse

Constructor Details

#initialize(snippet, source_path, source_line_num) ⇒ CircularReferenceError

Public: Create a new instance.

snippet - String snippet showing the reference. source_path - String path of the asset that contains the error. source_line_num - Integer line number in the asset file where the error is located.



13
14
15
# File 'lib/darkroom/errors/circular_reference_error.rb', line 13

def initialize(snippet, source_path, source_line_num)
  super('Reference would result in a circular reference chain', snippet, source_path, source_line_num)
end