Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
beb9b46f
Commit
beb9b46f
authored
May 28, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix and document newly exposed exception constructors.
parent
51ba2383
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
1 deletion
+48
-1
Exceptions.cs
StackExchange.Redis/StackExchange/Redis/Exceptions.cs
+48
-1
No files found.
StackExchange.Redis/StackExchange/Redis/Exceptions.cs
View file @
beb9b46f
...
...
@@ -76,7 +76,17 @@ public sealed partial class RedisServerException : RedisException
/// </summary>
public
sealed
partial
class
RedisCommandException
:
Exception
{
/// <summary>
/// Creates a new <see cref="RedisCommandException"/>.
/// </summary>
/// <param name="message">The message for the exception.</param>
public
RedisCommandException
(
string
message
)
:
base
(
message
)
{
}
/// <summary>
/// Creates a new <see cref="RedisCommandException"/>.
/// </summary>
/// <param name="message">The message for the exception.</param>
/// <param name="innerException">The inner exception.</param>
public
RedisCommandException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
}
...
...
@@ -85,7 +95,12 @@ public sealed partial class RedisCommandException : Exception
/// </summary>
public
sealed
partial
class
RedisTimeoutException
:
TimeoutException
{
pulic
RedisTimeoutException
(
string
message
,
CommandStatus
commandStatus
)
:
base
(
message
)
/// <summary>
/// Creates a new <see cref="RedisTimeoutException"/>.
/// </summary>
/// <param name="message">The message for the exception.</param>
/// <param name="commandStatus">The command status, as of when the timeout happened.</param>
public
RedisTimeoutException
(
string
message
,
CommandStatus
commandStatus
)
:
base
(
message
)
{
Commandstatus
=
commandStatus
;
}
...
...
@@ -101,10 +116,28 @@ pulic RedisTimeoutException(string message, CommandStatus commandStatus) : base(
/// </summary>
public
sealed
partial
class
RedisConnectionException
:
RedisException
{
/// <summary>
/// Creates a new <see cref="RedisConnectionException"/>.
/// </summary>
/// <param name="failureType">The type of connection failure.</param>
/// <param name="message">The message for the exception.</param>
public
RedisConnectionException
(
ConnectionFailureType
failureType
,
string
message
)
:
this
(
failureType
,
message
,
null
,
CommandStatus
.
Unknown
)
{}
/// <summary>
/// Creates a new <see cref="RedisConnectionException"/>.
/// </summary>
/// <param name="failureType">The type of connection failure.</param>
/// <param name="message">The message for the exception.</param>
/// <param name="innerException">The inner exception.</param>
public
RedisConnectionException
(
ConnectionFailureType
failureType
,
string
message
,
Exception
innerException
)
:
this
(
failureType
,
message
,
innerException
,
CommandStatus
.
Unknown
)
{}
/// <summary>
/// Creates a new <see cref="RedisConnectionException"/>.
/// </summary>
/// <param name="failureType">The type of connection failure.</param>
/// <param name="message">The message for the exception.</param>
/// <param name="innerException">The inner exception.</param>
/// <param name="commandStatus">The status of the command.</param>
public
RedisConnectionException
(
ConnectionFailureType
failureType
,
string
message
,
Exception
innerException
,
CommandStatus
commandStatus
)
:
base
(
message
,
innerException
)
{
FailureType
=
failureType
;
...
...
@@ -127,7 +160,17 @@ public RedisConnectionException(ConnectionFailureType failureType, string messag
/// </summary>
public
partial
class
RedisException
:
Exception
{
/// <summary>
/// Crerates a new <see cref="RedisException"/>.
/// </summary>
/// <param name="message">The message for the exception.</param>
public
RedisException
(
string
message
)
:
base
(
message
)
{
}
/// <summary>
/// Crerates a new <see cref="RedisException"/>.
/// </summary>
/// <param name="message">The message for the exception.</param>
/// <param name="innerException">The inner exception.</param>
public
RedisException
(
string
message
,
Exception
innerException
)
:
base
(
message
,
innerException
)
{
}
}
...
...
@@ -136,6 +179,10 @@ public partial class RedisException : Exception
/// </summary>
public
sealed
partial
class
RedisServerException
:
RedisException
{
/// <summary>
/// Creates a new <see cref="RedisServerException"/>.
/// </summary>
/// <param name="message">The message for the exception.</param>
public
RedisServerException
(
string
message
)
:
base
(
message
)
{
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment