/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v8.0.8
src/Npgsql/Shims/UnreachableException.cs
41 строка
1 KB
Nino Floris
Handler rework (#5123)
26 сен 2023, 00:08
Не верифицирован
26 сен 2023, 00:08
0b7aecb
Код
Авторство
О чём код?
#if !NET7_0_OR_GREATER using System; namespace System.Diagnostics; /// <summary> /// Exception thrown when the program executes an instruction that was thought to be unreachable. /// </summary> sealed class UnreachableException : Exception { /// <summary> /// Initializes a new instance of the <see cref="UnreachableException"/> class with the default error message. /// </summary> public UnreachableException() : base("The program executed an instruction that was thought to be unreachable.") { } /// <summary> /// Initializes a new instance of the <see cref="UnreachableException"/> /// class with a specified error message. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> public UnreachableException(string? message) : base(message) { } /// <summary> /// Initializes a new instance of the <see cref="UnreachableException"/> /// class with a specified error message and a reference to the inner exception that is the cause of /// this exception. /// </summary> /// <param name="message">The error message that explains the reason for the exception.</param> /// <param name="innerException">The exception that is the cause of the current exception.</param> public UnreachableException(string? message, Exception? innerException) : base(message, innerException) { } } #endif