Exception: Grumlin::QueryValidators::Validator::ValidationError
- Inherits:
-
Error
- Object
- StandardError
- Error
- Grumlin::QueryValidators::Validator::ValidationError
- Defined in:
- lib/grumlin/query_validators/validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(steps, errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(steps, errors) ⇒ ValidationError
Returns a new instance of ValidationError.
7 8 9 10 11 |
# File 'lib/grumlin/query_validators/validator.rb', line 7 def initialize(steps, errors) super("Query is invalid: #{errors}") @steps = steps @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/grumlin/query_validators/validator.rb', line 5 def errors @errors end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
5 6 7 |
# File 'lib/grumlin/query_validators/validator.rb', line 5 def steps @steps end |