Exception: Labkit::RateLimit::Config::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/labkit/rate_limit/config/error.rb

Overview

Error is raised when a document fails one of the load steps. step is :parse, :schema, :contract or :rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step, message) ⇒ Error

Returns a new instance of Error.



11
12
13
14
# File 'lib/labkit/rate_limit/config/error.rb', line 11

def initialize(step, message)
  @step = step
  super("#{step}: #{message}")
end

Instance Attribute Details

#step ⇒ Object (readonly)

Returns the value of attribute step.



9
10
11
# File 'lib/labkit/rate_limit/config/error.rb', line 9

def step
  @step
end