Exception: Pal::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Pal::ValidationError
- Defined in:
- lib/pal.rb
Overview
Exception classes
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors, msg = "Invalid Request") ⇒ ValidationError
constructor
A new instance of ValidationError.
- #message ⇒ Object
Constructor Details
#initialize(errors, msg = "Invalid Request") ⇒ ValidationError
Returns a new instance of ValidationError.
34 35 36 37 |
# File 'lib/pal.rb', line 34 def initialize(errors, msg="Invalid Request") super(msg) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
32 33 34 |
# File 'lib/pal.rb', line 32 def errors @errors end |
Instance Method Details
#message ⇒ Object
39 40 41 |
# File 'lib/pal.rb', line 39 def "Validation error: [#{@errors.join(", ")}]" end |