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

Parameters:

  • message (String)

    Error message

  • details (String) (defaults to: nil)

    Error additional details



198
199
200
201
# File 'lib/serega/plugins/depth_limit/depth_limit.rb', line 198

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

Instance Attribute Details

#detailsString (readonly)

Details of why depth limit error happens.

Returns:

  • (String)

    error details



188
189
190
# File 'lib/serega/plugins/depth_limit/depth_limit.rb', line 188

def details
  @details
end