-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,50 @@ | ||
class Redis | ||
class BaseError < StandardError | ||
class BaseError < RuntimeError | ||
end | ||
|
||
class ProtocolError < BaseError | ||
def initialize: (untyped reply_type) -> void | ||
end | ||
|
||
class CommandError < BaseError | ||
end | ||
|
||
class BaseConnectionError < BaseError | ||
end | ||
|
||
class CannotConnectError < BaseConnectionError | ||
end | ||
|
||
class ConnectionError < BaseConnectionError | ||
end | ||
|
||
class TimeoutError < BaseConnectionError | ||
end | ||
|
||
class InheritedError < BaseConnectionError | ||
end | ||
|
||
class InvalidClientOptionError < BaseError | ||
end | ||
|
||
class Cluster | ||
class OrchestrationCommandNotSupported < BaseError | ||
def initialize: (untyped command, untyped subcommand) -> void | ||
end | ||
|
||
class CommandErrorCollection < BaseError | ||
attr_reader errors: Hash[String, Redis::CommandError] | ||
@errors: Hash[String, Redis::CommandError] | ||
|
||
def initialize: (Hash[String, Redis::CommandError] errors, String error_message) -> void | ||
end | ||
|
||
class AmbiguousNodeError < BaseError | ||
def initialize: (untyped command) -> void | ||
end | ||
|
||
class CrossSlotPipeliningError < BaseError | ||
def initialize: (untyped keys) -> void | ||
end | ||
end | ||
end |