File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ - Add ` OutOfMemoryError ` as a subclass of ` CommandError `
4
+
3
5
# 5.0.2
4
6
5
7
- Fix ` Redis#close ` to properly reset the fork protection check.
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ class Client < ::RedisClient
17
17
RedisClient ::ProtocolError => Redis ::ProtocolError ,
18
18
}
19
19
20
+ if defined? ( RedisClient ::OutOfMemoryError )
21
+ ERROR_MAPPING [ RedisClient ::OutOfMemoryError ] = Redis ::OutOfMemoryError
22
+ end
23
+
20
24
class << self
21
25
def config ( **kwargs )
22
26
super ( protocol : 2 , **kwargs )
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ class WrongTypeError < CommandError
29
29
class ReadOnlyError < CommandError
30
30
end
31
31
32
+ class OutOfMemoryError < CommandError
33
+ end
34
+
32
35
# Base error for connection related errors.
33
36
class BaseConnectionError < BaseError
34
37
end
You can’t perform that action at this time.
0 commit comments