Exception: Labkit::RateLimit::Config::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Labkit::RateLimit::Config::Error
- 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
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
-
#initialize(step, message) ⇒ Error
constructor
A new instance of Error.
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, ) @step = step super("#{step}: #{}") 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 |