[Groonga-commit] groonga/groonga at 6be6a17 [master] mrb: add new errors

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 29 11:42:54 JST 2016


Kouhei Sutou	2016-03-29 11:42:54 +0900 (Tue, 29 Mar 2016)

  New Revision: 6be6a17ee6a67ececb80dcb4358b9f435532c634
  https://github.com/groonga/groonga/commit/6be6a17ee6a67ececb80dcb4358b9f435532c634

  Message:
    mrb: add new errors

  Modified files:
    lib/mrb/mrb_error.c
    lib/mrb/scripts/context/rc.rb

  Modified: lib/mrb/mrb_error.c (+4 -0)
===================================================================
--- lib/mrb/mrb_error.c    2016-03-29 11:01:58 +0900 (a3513be)
+++ lib/mrb/mrb_error.c    2016-03-29 11:42:54 +0900 (910e642)
@@ -190,5 +190,9 @@ grn_mrb_error_init(grn_ctx *ctx)
                          groonga_error_class);
   mrb_define_class_under(mrb, module, "PluginError",
                          groonga_error_class);
+  mrb_define_class_under(mrb, module, "ScorerError",
+                         groonga_error_class);
+  mrb_define_class_under(mrb, module, "Cancel",
+                         groonga_error_class);
 }
 #endif

  Modified: lib/mrb/scripts/context/rc.rb (+4 -0)
===================================================================
--- lib/mrb/scripts/context/rc.rb    2016-03-29 11:01:58 +0900 (f06b32d)
+++ lib/mrb/scripts/context/rc.rb    2016-03-29 11:42:54 +0900 (8ed182e)
@@ -182,6 +182,10 @@ module Groonga
         register(:command_error, -74, CommandError)
       PLUGIN_ERROR =
         register(:plugin_error, -75, PluginError)
+      SCORER_ERROR =
+        register(:scorer_error, -76, ScorerError)
+      CANCEL =
+        register(:cancel, -77, Cancel)
 
       GroongaError.rc = UNKNOWN_ERROR
     end
-------------- next part --------------
HTML����������������������������...
Download 



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