Exception: KafoWizards::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- KafoWizards::ValidationError
- Defined in:
- lib/kafo_wizards/exceptions.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(msg = nil) ⇒ ValidationError
Returns a new instance of ValidationError.
6 7 8 9 10 |
# File 'lib/kafo_wizards/exceptions.rb', line 6 def initialize(msg=nil) = [msg].flatten(1) super(.join("; ")) @messages = end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
4 5 6 |
# File 'lib/kafo_wizards/exceptions.rb', line 4 def @messages end |