Sundstrom.CheckedExceptions 2.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Sundstrom.CheckedExceptions --version 2.2.2
                    
NuGet\Install-Package Sundstrom.CheckedExceptions -Version 2.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sundstrom.CheckedExceptions" Version="2.2.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sundstrom.CheckedExceptions" Version="2.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Sundstrom.CheckedExceptions">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sundstrom.CheckedExceptions --version 2.2.2
                    
#r "nuget: Sundstrom.CheckedExceptions, 2.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sundstrom.CheckedExceptions@2.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sundstrom.CheckedExceptions&version=2.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Sundstrom.CheckedExceptions&version=2.2.2
                    
Install as a Cake Tool

Checked Exceptions for C#

Take control of exception flow—enforce explicit handling or declaration in C#.

dotnet add package Sundstrom.CheckedExceptions
public class Sample
{
    public void Execute()
    {
        Perform(); // ⚠️ THROW001: Unhandled InvalidOperationException
    }

    [Throws(typeof(InvalidOperationException))]
    public void Perform() => throw new InvalidOperationException();
}

For full documentation, samples, and FAQ, see the project repository.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.1 698 9/5/2025
2.5.0 162 9/5/2025
2.2.4 440 9/1/2025
2.2.3 222 8/24/2025
2.2.2 184 8/24/2025
2.2.1 121 8/23/2025
2.2.0 126 8/23/2025
2.1.2 144 8/22/2025
2.1.1 196 8/14/2025
2.1.0 194 8/14/2025
2.0.3 191 8/12/2025
2.0.2 187 8/10/2025
2.0.1 186 8/9/2025
2.0.0 242 8/8/2025
1.9.9 269 8/6/2025
1.9.8 295 8/5/2025
1.9.7 276 8/5/2025
1.9.6 269 8/5/2025
1.9.5 264 8/5/2025
1.9.0 165 8/3/2025
1.8.5 70 8/2/2025
1.8.2 83 8/1/2025
1.8.1 146 7/31/2025
1.8.0 146 7/31/2025
1.7.1 138 7/30/2025
1.7.0 136 7/30/2025
1.6.7 148 7/29/2025
1.6.6 141 7/29/2025
1.6.5 158 7/28/2025
1.6.4 159 7/28/2025
1.6.3 161 7/28/2025
1.6.2 152 7/28/2025
1.6.1 167 7/27/2025
1.6.0 177 7/27/2025
1.5.2 267 7/26/2025
1.5.1 290 7/26/2025
1.5.0 288 7/26/2025
1.4.3 278 7/26/2025
1.4.2 421 7/25/2025
1.4.1 455 7/25/2025
1.4.0 506 7/24/2025
1.3.6 564 7/23/2025
1.3.5 564 7/23/2025
1.3.1 148 6/28/2025
1.3.0 140 6/28/2025
1.2.6 166 4/12/2025
1.2.5 155 4/12/2025
1.2.4 193 4/11/2025
1.2.3 237 11/30/2024
1.2.2 153 11/29/2024
1.2.1 161 11/28/2024
1.2.0 159 11/27/2024
1.1.9 161 11/26/2024
1.1.8 157 11/26/2024
1.1.7 157 11/26/2024
1.1.6 159 11/25/2024
1.1.5 164 11/25/2024
1.1.4 170 11/25/2024
1.1.3 169 11/24/2024
1.1.2 153 11/24/2024
1.1.1 155 11/24/2024
1.1.0 165 11/23/2024
1.0.9 164 11/22/2024
1.0.8 162 11/22/2024
1.0.7 160 11/21/2024
1.0.6 163 11/21/2024
1.0.5 165 11/20/2024
1.0.4 167 11/19/2024
1.0.3 154 11/19/2024
1.0.2 167 11/19/2024
1.0.1 168 11/19/2024
1.0.0 170 11/19/2024