Exception: Voodoo::Validator::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Voodoo::Validator::ValidationError
- Defined in:
- lib/voodoo/validator.rb
Overview
Base class for errors signaled by the Validator.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message, code = nil) ⇒ ValidationError
Returns a new instance of ValidationError.
320 321 322 323 |
# File 'lib/voodoo/validator.rb', line 320 def initialize , code = nil super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
324 325 326 |
# File 'lib/voodoo/validator.rb', line 324 def code @code end |