Exception: Presto::Client::PrestoQueryError
- Inherits:
-
PrestoError
- Object
- StandardError
- PrestoError
- Presto::Client::PrestoQueryError
- Defined in:
- lib/presto/client/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_name ⇒ Object
readonly
Returns the value of attribute error_name.
-
#failure_info ⇒ Object
readonly
Returns the value of attribute failure_info.
Instance Method Summary collapse
-
#initialize(message, query_id, error_code, error_name, failure_info) ⇒ PrestoQueryError
constructor
A new instance of PrestoQueryError.
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(, query_id, error_code, error_name, failure_info) super() @query_id = query_id @error_code = error_code @error_name = error_name @failure_info = failure_info end |
Instance Attribute Details
#error_code ⇒ Object (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_name ⇒ Object (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_info ⇒ Object (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 |