Skip to content

Commit 036c3c1

Browse files
committed
ReadOnlyError
1 parent a69c3fc commit 036c3c1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/redis/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class Client < ::RedisClient
1313
RedisClient::FailoverError => Redis::CannotConnectError,
1414
RedisClient::PermissionError => Redis::PermissionError,
1515
RedisClient::WrongTypeError => Redis::WrongTypeError,
16+
RedisClient::ReadOnlyError => Redis::ReadOnlyError,
1617
RedisClient::ProtocolError => Redis::ProtocolError,
1718
}.freeze
1819

lib/redis/errors.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class PermissionError < CommandError
2626
class WrongTypeError < CommandError
2727
end
2828

29+
class ReadOnlyError < CommandError
30+
end
31+
2932
# Base error for connection related errors.
3033
class BaseConnectionError < BaseError
3134
end

0 commit comments

Comments
 (0)