Exception: Axn::ValidationError
- Inherits:
-
ContractViolation
- Object
- StandardError
- ContractViolation
- Axn::ValidationError
- Defined in:
- lib/axn/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
63 64 65 66 |
# File 'lib/axn/exceptions.rb', line 63 def initialize(errors) @errors = errors super end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
61 62 63 |
# File 'lib/axn/exceptions.rb', line 61 def errors @errors end |
Instance Method Details
#message ⇒ Object
68 |
# File 'lib/axn/exceptions.rb', line 68 def = errors..to_sentence |
#to_s ⇒ Object
69 |
# File 'lib/axn/exceptions.rb', line 69 def to_s = |