Method: Presto::Client::QueryError.decode_hash
- Defined in:
- lib/presto/client/models.rb
.decode_hash(hash) ⇒ Object
199 200 201 202 203 204 205 206 207 |
# File 'lib/presto/client/models.rb', line 199 def self.decode_hash(hash) new( message: hash["message"], sql_state: hash["sqlState"], error_code: hash["errorCode"], error_location: hash["errorLocation"] && ErrorLocation.decode_hash(hash["errorLocation"]), failure_info: hash["failureInfo"] && FailureInfo.decode_hash(hash["failureInfo"]), ) end |