ExceptionManager 1.0.2
dotnet add package ExceptionManager --version 1.0.2
NuGet\Install-Package ExceptionManager -Version 1.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="ExceptionManager" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ExceptionManager --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ExceptionManager, 1.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.
// Install ExceptionManager as a Cake Addin #addin nuget:?package=ExceptionManager&version=1.0.2 // Install ExceptionManager as a Cake Tool #tool nuget:?package=ExceptionManager&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ExceptionManager
Exception Manager allows to get all the Inner Exceptions Messages from an Exception. You can return a new Exception or just all messages combined in one string.
Installation
- Open the Nuget Package Manager Console
- Install-Package ExceptionManager
- Or from the Nuget Package Manager search for ExceptionManager and install it from there
Usage
Example #1:
var innerException = new Exception("There was another error");
var exception = new Exception("There was an error", innerException);
var newException = ExceptionManager.ExceptionToException(exception);
Console.WriteLine(newException.Message);
// Outputs
// "There was an error, There was another error"
Example #2:
var innerException = new Exception("There was another error");
var exception = new Exception("There was an error", innerException);
var newExceptionMessage = ExceptionManager.ExceptionToString(exception);
Console.WriteLine(newExceptionMessage);
// Outputs
// "There was an error, There was another error"
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request 😄
License
MIT License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in 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.
Breaking changes: Class name changed from ExceptionManager to ExceptionMgr