Sundstrom.CheckedExceptions 2.5.1

dotnet add package Sundstrom.CheckedExceptions --version 2.5.1
                    
NuGet\Install-Package Sundstrom.CheckedExceptions -Version 2.5.1
                    
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.5.1">
  <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.5.1" />
                    
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.5.1
                    
#r "nuget: Sundstrom.CheckedExceptions, 2.5.1"
                    
#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.5.1
                    
#: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.5.1
                    
Install as a Cake Addin
#tool nuget:?package=Sundstrom.CheckedExceptions&version=2.5.1
                    
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 (1)

Showing the top 1 popular GitHub repositories that depend on Sundstrom.CheckedExceptions:

Repository Stars
marinasundstrom/YourBrand
Prototype enterprise system for e-commerce and consulting services
Version Downloads Last Updated
2.5.1 664 9/5/2025
2.5.0 137 9/5/2025
2.2.4 421 9/1/2025
2.2.3 197 8/24/2025
2.2.2 167 8/24/2025
2.2.1 101 8/23/2025
2.2.0 96 8/23/2025
2.1.2 118 8/22/2025
2.1.1 176 8/14/2025
2.1.0 169 8/14/2025
2.0.3 170 8/12/2025
2.0.2 161 8/10/2025
2.0.1 158 8/9/2025
2.0.0 215 8/8/2025
1.9.9 245 8/6/2025
1.9.8 272 8/5/2025
1.9.7 248 8/5/2025
1.9.6 246 8/5/2025
1.9.5 239 8/5/2025
1.9.0 138 8/3/2025
1.8.5 51 8/2/2025
1.8.2 62 8/1/2025
1.8.1 128 7/31/2025
1.8.0 125 7/31/2025
1.7.1 116 7/30/2025
1.7.0 119 7/30/2025
1.6.7 123 7/29/2025
1.6.6 122 7/29/2025
1.6.5 136 7/28/2025
1.6.4 137 7/28/2025
1.6.3 146 7/28/2025
1.6.2 132 7/28/2025
1.6.1 153 7/27/2025
1.6.0 162 7/27/2025
1.5.2 251 7/26/2025
1.5.1 273 7/26/2025
1.5.0 270 7/26/2025
1.4.3 255 7/26/2025
1.4.2 400 7/25/2025
1.4.1 435 7/25/2025
1.4.0 482 7/24/2025
1.3.6 539 7/23/2025
1.3.5 551 7/23/2025
1.3.1 131 6/28/2025
1.3.0 123 6/28/2025
1.2.6 148 4/12/2025
1.2.5 142 4/12/2025
1.2.4 172 4/11/2025
1.2.3 218 11/30/2024
1.2.2 134 11/29/2024
1.2.1 145 11/28/2024
1.2.0 144 11/27/2024
1.1.9 144 11/26/2024
1.1.8 145 11/26/2024
1.1.7 140 11/26/2024
1.1.6 144 11/25/2024
1.1.5 145 11/25/2024
1.1.4 150 11/25/2024
1.1.3 156 11/24/2024
1.1.2 139 11/24/2024
1.1.1 140 11/24/2024
1.1.0 149 11/23/2024
1.0.9 150 11/22/2024
1.0.8 144 11/22/2024
1.0.7 144 11/21/2024
1.0.6 149 11/21/2024
1.0.5 147 11/20/2024
1.0.4 148 11/19/2024
1.0.3 144 11/19/2024
1.0.2 153 11/19/2024
1.0.1 157 11/19/2024
1.0.0 154 11/19/2024