SharperHacks.CoreLibs.ExceptionsAndHandlers 6.0.2

Prefix Reserved
This package has a SemVer 2.0.0 package version: 6.0.2+2026.10.20.JwD.1400f11.
dotnet add package SharperHacks.CoreLibs.ExceptionsAndHandlers --version 6.0.2
                    
NuGet\Install-Package SharperHacks.CoreLibs.ExceptionsAndHandlers -Version 6.0.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="SharperHacks.CoreLibs.ExceptionsAndHandlers" Version="6.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharperHacks.CoreLibs.ExceptionsAndHandlers" Version="6.0.2" />
                    
Directory.Packages.props
<PackageReference Include="SharperHacks.CoreLibs.ExceptionsAndHandlers" />
                    
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 SharperHacks.CoreLibs.ExceptionsAndHandlers --version 6.0.2
                    
#r "nuget: SharperHacks.CoreLibs.ExceptionsAndHandlers, 6.0.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 SharperHacks.CoreLibs.ExceptionsAndHandlers@6.0.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=SharperHacks.CoreLibs.ExceptionsAndHandlers&version=6.0.2
                    
Install as a Cake Addin
#tool nuget:?package=SharperHacks.CoreLibs.ExceptionsAndHandlers&version=6.0.2
                    
Install as a Cake Tool

SharperHacks logo

ExceptionsAndHandlers Library for .NET

SharperHacks.CoreLibs.ExceptionsAndHandlers

Defines exception handling classes and methods.

Licensed under the Apache License, Version 2.0. See LICENSE.

Contact: coders@sharperhacks.org

Nuget: https://www.nuget.org/packages/SharperHacks.CoreLibs.ExceptionsAndHandlers

Targets

  • net10.0

Classes

ExceptionT

Generic exception, making it easy to throw more specific exceptions than with simple Exception. Use to avoid the "warning CA2201: Exception type System.Exception is not sufficiently specific" warning.

Example:

class X 
{
    void DoSomething()
    {
       ...
       throw Exception<X>("X won't fit in a Z shaped opening.");
    }
}
UnhandledExceptionHandler

Simple, disposable unhandled exception event handler.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SharperHacks.CoreLibs.ExceptionsAndHandlers:

Package Downloads
SharperHacks.CoreLibs.CommandLineInterface

Command line parser.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.2 38 10/20/2026
6.0.1 71 9/14/2026
6.0.0 60 9/12/2026
5.0.3 50 9/11/2026
5.0.2 169 10/14/2025
5.0.1 104 10/11/2025
4.1.0 195 3/26/2025
4.0.3 132 3/14/2025
4.0.2 268 1/29/2025
4.0.1 148 12/20/2024
4.0.0 126 11/17/2024
3.0.1 137 10/13/2024
3.0.0 142 7/11/2024