Class: Hexspace::TStatus
- Inherits:
-
Object
- Object
- Hexspace::TStatus
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- STATUSCODE =
1
- INFOMESSAGES =
2
- SQLSTATE =
3
- ERRORCODE =
4
- ERRORMESSAGE =
5
- FIELDS =
{ STATUSCODE => {:type => ::Thrift::Types::I32, :name => 'statusCode', :enum_class => ::Hexspace::TStatusCode}, INFOMESSAGES => {:type => ::Thrift::Types::LIST, :name => 'infoMessages', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, SQLSTATE => {:type => ::Thrift::Types::STRING, :name => 'sqlState', :optional => true}, ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :optional => true}, ERRORMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'errorMessage', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1041 |
# File 'lib/hexspace/tcli_service_types.rb', line 1041 def struct_fields; FIELDS; end |
#validate ⇒ Object
1043 1044 1045 1046 1047 1048 |
# File 'lib/hexspace/tcli_service_types.rb', line 1043 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field statusCode is unset!') unless @statusCode unless @statusCode.nil? || ::Hexspace::TStatusCode::VALID_VALUES.include?(@statusCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field statusCode!') end end |