Exception: Coradoc::IncludeDepthExceededError
- Defined in:
- lib/coradoc/errors.rb
Overview
Error raised when an include chain exceeds the configured depth limit.
Instance Attribute Summary collapse
-
#depth ⇒ Object
readonly
Returns the value of attribute depth.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target:, depth:, max:) ⇒ IncludeDepthExceededError
constructor
A new instance of IncludeDepthExceededError.
Constructor Details
#initialize(target:, depth:, max:) ⇒ IncludeDepthExceededError
Returns a new instance of IncludeDepthExceededError.
302 303 304 305 306 |
# File 'lib/coradoc/errors.rb', line 302 def initialize(target:, depth:, max:) @target = target @depth = depth super("Include depth #{depth} exceeds max #{max} at #{target}") end |
Instance Attribute Details
#depth ⇒ Object (readonly)
Returns the value of attribute depth.
300 301 302 |
# File 'lib/coradoc/errors.rb', line 300 def depth @depth end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
300 301 302 |
# File 'lib/coradoc/errors.rb', line 300 def target @target end |