Exception: Coradoc::IncludeDepthExceededError

Inherits:
Error
  • Object
show all
Defined in:
lib/coradoc/errors.rb

Overview

Error raised when an include chain exceeds the configured depth limit.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#depthObject (readonly)

Returns the value of attribute depth.



300
301
302
# File 'lib/coradoc/errors.rb', line 300

def depth
  @depth
end

#targetObject (readonly)

Returns the value of attribute target.



300
301
302
# File 'lib/coradoc/errors.rb', line 300

def target
  @target
end