Sha256: 24a1fad7aee16977d1e1781f212347e63216591d9cfd09d60c335134c9c7bea6
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
module DDQL class QueryExpressionError < StandardError attr_reader :cause, :expression def initialize(expression:, cause: nil, message: nil) @cause = cause @expression = expression @message = message || (cause ? cause.message : 'invalid expression') end def to_s "failed to parse #{@expression}: #{@message}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddql-1.0.1 | lib/ddql/query_expression_error.rb |
ddql-1.0.0 | lib/ddql/query_expression_error.rb |