-
Notifications
You must be signed in to change notification settings - Fork 9.8k
/
AddressInUseException.cs
30 lines (27 loc) · 1.06 KB
/
AddressInUseException.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
// 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 there the current address Kestrel is trying to bind to is in use.
/// </summary>
public class AddressInUseException : InvalidOperationException
{
/// <summary>
/// Initializes a new instance of <see cref="AddressInUseException"/>.
/// </summary>
/// <param name="message">The exception message.</param>
public AddressInUseException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of <see cref="AddressInUseException"/>.
/// </summary>
/// <param name="message">The exception message.</param>
/// <param name="inner">The underlying <see cref="Exception"/>.</param>
public AddressInUseException(string message, Exception inner) : base(message, inner)
{
}
}
}