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.
321 322 323 324 325 |
# File 'lib/coradoc/errors.rb', line 321 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.
319 320 321 |
# File 'lib/coradoc/errors.rb', line 319 def depth @depth end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
319 320 321 |
# File 'lib/coradoc/errors.rb', line 319 def target @target end |