AgileCoding.Extentions... 2.0.5 License Info
AgileCoding.Extentions.Exceptions
2.0.5
AgileCoding.Extensions.Exception
Overview
AgileCoding.Extensions.Exception is a .NET library that provides enhanced functionality for handling exceptions in your .NET applications. The package offers extension methods that can be used to obtain more comprehensive information from exceptions, including details from inner exceptions and reflection type load exceptions.
Installation
This library is available as a NuGet package. You can install it using the NuGet package manager console:
bashCopy code
Install-Package AgileCoding.Extensions.Exception -Version 2.0.5
Features
The library introduces the following extension methods for System.Exception:
ToStringAll: Provides a string representation of an exception and all its inner exceptions.
AddReflectionTypeLoadException: Extends an exception with additional information if the exception is of type
ReflectionTypeLoadException.
Usage
Here's a brief example of how to use these features in your code:
using AgileCoding.Extentions.Exceptions;
using System;
try
{
// Your code here...
}
catch (Exception ex)
{
Console.WriteLine(ex.ToStringAll());
var updatedEx = ex.AddReflectionTypeLoadException<Exception>();
// Handle or log the updatedEx...
}
Documentation
For more detailed information about the usage of this library, please refer to the official documentation.
License
This project is licensed under the terms of the MIT license. For more information, see the LICENSE file.
Contributing
Contributions are welcome! Please see our contributing guidelines for more details.