[Groonga-commit] ranguba/groonga-client at 9ba3292 [master] Use more meaningful name

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Mar 15 23:35:41 JST 2014


Kouhei Sutou	2014-03-15 23:35:41 +0900 (Sat, 15 Mar 2014)

  New Revision: 9ba329204dd5c56cad1ce615387db3b964ce618f
  https://github.com/ranguba/groonga-client/commit/9ba329204dd5c56cad1ce615387db3b964ce618f

  Message:
    Use more meaningful name

  Modified files:
    lib/groonga/client/protocol/error.rb
    lib/groonga/client/protocol/gqtp.rb

  Modified: lib/groonga/client/protocol/error.rb (+3 -0)
===================================================================
--- lib/groonga/client/protocol/error.rb    2014-03-15 21:36:15 +0900 (0f6fe5a)
+++ lib/groonga/client/protocol/error.rb    2014-03-15 23:35:41 +0900 (c727dd0)
@@ -22,6 +22,9 @@ module Groonga
   class Client
     module Protocol
       class Error < Client::Error
+      end
+
+      class WrappedError < Error
         attr_reader :raw_error
         def initialize(raw_error)
           @raw_error = raw_error

  Modified: lib/groonga/client/protocol/gqtp.rb (+1 -1)
===================================================================
--- lib/groonga/client/protocol/gqtp.rb    2014-03-15 21:36:15 +0900 (46a2a24)
+++ lib/groonga/client/protocol/gqtp.rb    2014-03-15 23:35:41 +0900 (b5e2b11)
@@ -33,7 +33,7 @@ module Groonga
           begin
             @client = ::GQTP::Client.new(options)
           rescue ::GQTP::ConnectionError
-            raise Error.new($!)
+            raise WrappedError.new($!)
           end
         end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index