Exception: Serega::DepthLimitError

Inherits:
SeregaError
  • Object
show all
Defined in:
lib/serega/plugins/depth_limit/depth_limit.rb

Overview

Special error for depth_limit plugin

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, details = nil) ⇒ DepthLimitError

Initializes new error



201
202
203
204
# File 'lib/serega/plugins/depth_limit/depth_limit.rb', line 201

def initialize(message, details = nil)
  super(message)
  @details = details
end

Instance Attribute Details

#detailsString (readonly)

Details of why depth limit error happens.



191
192
193
# File 'lib/serega/plugins/depth_limit/depth_limit.rb', line 191

def details
  @details
end