Exception: Vial::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Vial::ValidationError
- Defined in:
- lib/vial/validator.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, details) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(type, details) ⇒ ValidationError
Returns a new instance of ValidationError.
7 8 9 10 11 |
# File 'lib/vial/validator.rb', line 7 def initialize(type, details) @type = type @details = details super() end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
5 6 7 |
# File 'lib/vial/validator.rb', line 5 def details @details end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/vial/validator.rb', line 5 def type @type end |