Exception: Grumlin::QueryValidators::Validator::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/grumlin/query_validators/validator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (readonly)

Returns the value of attribute errors.



5
6
7
# File 'lib/grumlin/query_validators/validator.rb', line 5

def errors
  @errors
end

#stepsObject (readonly)

Returns the value of attribute steps.



5
6
7
# File 'lib/grumlin/query_validators/validator.rb', line 5

def steps
  @steps
end