-
Notifications
You must be signed in to change notification settings - Fork 9.8k
/
ConnectionAbortedException.cs
39 lines (34 loc) · 1.3 KB
/
ConnectionAbortedException.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Microsoft.AspNetCore.Connections
{
/// <summary>
/// An exception that is thrown when a connection is aborted by the server.
/// </summary>
public class ConnectionAbortedException : OperationCanceledException
{
/// <summary>
/// Initializes a new instance of <see cref="ConnectionAbortedException"/>.
/// </summary>
public ConnectionAbortedException() :
this("The connection was aborted")
{
}
/// <summary>
/// Initializes a new instance of <see cref="ConnectionAbortedException"/>.
/// </summary>
/// <param name="message">The exception message.</param>
public ConnectionAbortedException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of <see cref="ConnectionAbortedException"/>.
/// </summary>
/// <param name="message">The exception message.</param>
/// <param name="inner">The underlying <see cref="Exception"/>.</param>
public ConnectionAbortedException(string message, Exception inner) : base(message, inner)
{
}
}
}