Exception: Presto::Client::PrestoQueryError

Inherits:
PrestoError
  • Object
show all
Defined in:
lib/presto/client/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, query_id, error_code, error_name, failure_info) ⇒ PrestoQueryError

Returns a new instance of PrestoQueryError.



33
34
35
36
37
38
39
# File 'lib/presto/client/errors.rb', line 33

def initialize(message, query_id, error_code, error_name, failure_info)
  super(message)
  @query_id = query_id
  @error_code = error_code
  @error_name = error_name
  @failure_info = failure_info
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



41
42
43
# File 'lib/presto/client/errors.rb', line 41

def error_code
  @error_code
end

#error_nameObject (readonly)

Returns the value of attribute error_name.



41
42
43
# File 'lib/presto/client/errors.rb', line 41

def error_name
  @error_name
end

#failure_infoObject (readonly)

Returns the value of attribute failure_info.



41
42
43
# File 'lib/presto/client/errors.rb', line 41

def failure_info
  @failure_info
end