about summary refs log tree commit homepage
path: root/lib/mogilefs/new_file/common.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mogilefs/new_file/common.rb')
-rw-r--r--lib/mogilefs/new_file/common.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mogilefs/new_file/common.rb b/lib/mogilefs/new_file/common.rb
index 44eee69..d696072 100644
--- a/lib/mogilefs/new_file/common.rb
+++ b/lib/mogilefs/new_file/common.rb
@@ -7,14 +7,14 @@ require 'mogilefs/chunker'
 
 module MogileFS::NewFile::Common
   # :stopdoc:
-  class RetryableError < MogileFS::Error; end
-  class EmptyResponseError < RetryableError; end
-  class BadResponseError < RetryableError; end
-  class UnparseableResponseError < RetryableError; end
+  RetryableError = Class.new(MogileFS::Error)
+  EmptyResponseError = Class.new(RetryableError)
+  BadResponseError = Class.new(RetryableError)
+  UnparseableResponseError = Class.new(RetryableError)
   class NoStorageNodesError < MogileFS::Error
     def message; 'Unable to open socket to storage node'; end
   end
-  class NonRetryableError < MogileFS::Error; end
+  NonRetryableError = Class.new(MogileFS::Error)
 
   MD5_TRAILER_NODES = {} # :nodoc: # EXPERIMENTAL