[Groonga-commit] droonga/fluent-plugin-droonga at fb0f059 [master] Define base error class for errors in Droonga

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 13:27:15 JST 2014


YUKI Hiroshi	2014-02-12 13:27:15 +0900 (Wed, 12 Feb 2014)

  New Revision: fb0f05921f308cd2096fab92bc9a2cfef9cf095a
  https://github.com/droonga/fluent-plugin-droonga/commit/fb0f05921f308cd2096fab92bc9a2cfef9cf095a

  Message:
    Define base error class for errors in Droonga

  Copied files:
    lib/droonga/error.rb
      (from lib/droonga/catalog.rb)
  Modified files:
    lib/droonga/catalog.rb
    lib/droonga/message_processing_error.rb

  Modified: lib/droonga/catalog.rb (+2 -1)
===================================================================
--- lib/droonga/catalog.rb    2014-02-12 13:25:41 +0900 (c65a6ec)
+++ lib/droonga/catalog.rb    2014-02-12 13:27:15 +0900 (826f058)
@@ -16,12 +16,13 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 require "droonga/catalog_loader"
+require "droonga/error"
 
 module Droonga
   class << self
     attr_accessor :catalog
   end
 
-  class InvalidCatalog < StandardError
+  class InvalidCatalog < Error
   end
 end

  Copied: lib/droonga/error.rb (+2 -8) 81%
===================================================================
--- lib/droonga/catalog.rb    2014-02-12 13:25:41 +0900 (c65a6ec)
+++ lib/droonga/error.rb    2014-02-12 13:27:15 +0900 (4546c45)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2013-2014 Droonga Project
+# Copyright (C) 2014 Droonga Project
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -15,13 +15,7 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-require "droonga/catalog_loader"
-
 module Droonga
-  class << self
-    attr_accessor :catalog
-  end
-
-  class InvalidCatalog < StandardError
+  class Error < StandardError
   end
 end

  Modified: lib/droonga/message_processing_error.rb (+4 -2)
===================================================================
--- lib/droonga/message_processing_error.rb    2014-02-12 13:25:41 +0900 (12cb0b2)
+++ lib/droonga/message_processing_error.rb    2014-02-12 13:27:15 +0900 (6162b25)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013 Droonga Project
+# Copyright (C) 2013-2014 Droonga Project
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -13,8 +13,10 @@
 # License along with this library; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+require "droonga/error"
+
 module Droonga
-  class MessageProcessingError < StandardError
+  class MessageProcessingError < Error
     STATUS_CODE = 500
 
     attr_reader :message, :detail
-------------- next part --------------
HTML����������������������������...
Download 



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