lib/bunny/exceptions.rb in bunny-0.9.0.pre6 vs lib/bunny/exceptions.rb in bunny-0.9.0.pre7
- old
+ new
@@ -134,6 +134,15 @@
class InvalidCommand < ConnectionLevelException
end
class UnexpectedFrame < ConnectionLevelException
end
+
+ class NetworkErrorWrapper < StandardError
+ attr_reader :other
+
+ def initialize(other)
+ super(other.message)
+ @other = other
+ end
+ end
end