Exception: Clearly::Query::QueryArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/clearly/query/errors.rb

Overview

Generic error from Clearly Query

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, filter_segment = nil) ⇒ QueryArgumentError

Create a Filter Argument Error

Parameters:

  • message (String) (defaults to: nil)
  • filter_segment (Hash) (defaults to: nil)


14
15
16
17
18
# File 'lib/clearly/query/errors.rb', line 14

def initialize(message = nil, filter_segment = nil)
  @message = message
  @filter_segment = filter_segment
  self
end

Instance Attribute Details

#filter_segmentHash (readonly)

Returns partial filter hash.

Returns:

  • (Hash)

    partial filter hash



8
9
10
# File 'lib/clearly/query/errors.rb', line 8

def filter_segment
  @filter_segment
end

Instance Method Details

#to_sString

Show a string representation of this error

Returns:

  • (String)


22
23
24
# File 'lib/clearly/query/errors.rb', line 22

def to_s
  @message
end