Class: Sails::Service::Exception

Inherits:
Thrift::Exception
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/sails/service/exception.rb

Overview

Thrift Exception

Constant Summary collapse

CODE =
1
MESSAGE =
2
FIELDS =
{
  CODE => {:type => ::Thrift::Types::I32, :name => 'code'},
  MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject


14
# File 'lib/sails/service/exception.rb', line 14

def struct_fields; FIELDS; end

#validateObject


16
17
# File 'lib/sails/service/exception.rb', line 16

def validate
end