Exception: BibleQL::QueryError

Inherits:
Error
  • Object
show all
Defined in:
lib/bibleql/errors.rb

Direct Known Subclasses

NotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, errors: []) ⇒ QueryError

Returns a new instance of QueryError.



31
32
33
34
# File 'lib/bibleql/errors.rb', line 31

def initialize(message = nil, errors: [])
  @errors = errors
  super(message)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



29
30
31
# File 'lib/bibleql/errors.rb', line 29

def errors
  @errors
end