Exception: Plutonium::Wizard::StepError
- Inherits:
-
StandardError
- Object
- StandardError
- Plutonium::Wizard::StepError
- Defined in:
- lib/plutonium/wizard/errors.rb
Overview
Raised when a wizard step fails. Carries the attribute the error should be
attached to (defaults to :base) so it can be surfaced on a form.
Instance Attribute Summary collapse
-
#attribute ⇒ Symbol
readonly
The attribute the error applies to.
Instance Method Summary collapse
-
#initialize(message = nil, attribute: :base) ⇒ StepError
constructor
A new instance of StepError.
Constructor Details
#initialize(message = nil, attribute: :base) ⇒ StepError
Returns a new instance of StepError.
21 22 23 24 |
# File 'lib/plutonium/wizard/errors.rb', line 21 def initialize( = nil, attribute: :base) @attribute = attribute super() end |
Instance Attribute Details
#attribute ⇒ Symbol (readonly)
Returns the attribute the error applies to.
17 18 19 |
# File 'lib/plutonium/wizard/errors.rb', line 17 def attribute @attribute end |