class Hive2::Thrift::TStatus

Constants

ERRORCODE
ERRORMESSAGE
FIELDS
INFOMESSAGES
SQLSTATE
STATUSCODE

Public Instance Methods

struct_fields() click to toggle source
    # File lib/thrift/t_c_l_i_service_types.rb
867 def struct_fields; FIELDS; end
validate() click to toggle source
    # File lib/thrift/t_c_l_i_service_types.rb
869 def validate
870   raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statusCode is unset!') unless @statusCode
871   unless @statusCode.nil? || ::Hive2::Thrift::TStatusCode::VALID_VALUES.include?(@statusCode)
872     raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusCode!')
873   end
874 end