public
Description: Cross language RPC
Homepage: http://developers.facebook.com/thrift/
Clone URL: git://github.com/kevinclark/thrift.git
Search Repo:
rb: TMemoryBuffer should raise the right exception
kevinclark (author)
Mon Apr 28 16:14:15 -0700 2008
commit  86eb40f9944e7fb330760e17d9517b1164582790
tree    b8f776d99022ec7101289fac21c52eff30c51547
parent  993f8d3036b617d8db99a2bf1faf0709af0980e0
...
302
303
304
305
306
 
307
308
309
...
302
303
304
 
 
305
306
307
308
0
@@ -302,8 +302,7 @@
0
       @buf[@rpos..-1]
0
     else
0
       if size > @buf.length - @rpos
0
- # TODO: Replace with real exception
0
- raise NotImplementedError # Memory buffers only get one shot.
0
+ raise EOFError # Memory buffers only get one shot.
0
       else
0
         @buf[@rpos..(@rpos + size)]
0
       end

Comments

    No one has commented yet.