Exception: Exocora::ValidationError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Exocora::ValidationError
- Defined in:
- lib/exocora/errors.rb
Overview
An error encountered when validating data
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, message = 'is invalid') ⇒ ValidationError
constructor
A new instance of ValidationError.
- #to_s ⇒ Object
Constructor Details
#initialize(value, message = 'is invalid') ⇒ ValidationError
Returns a new instance of ValidationError.
15 16 17 18 |
# File 'lib/exocora/errors.rb', line 15 def initialize(value, = 'is invalid') @value = value = end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
14 15 16 |
# File 'lib/exocora/errors.rb', line 14 def end |
#value ⇒ Object
Returns the value of attribute value.
14 15 16 |
# File 'lib/exocora/errors.rb', line 14 def value @value end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/exocora/errors.rb', line 20 def to_s end |