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
#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

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

  1. Open the Nuget Package Manager Console
  2. Install-Package ExceptionManager
  3. 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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request 😄

License

MIT License

Product 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.

Version Downloads Last updated
1.0.2 1,233 10/7/2017
1.0.1 932 8/4/2017
1.0.0 1,279 7/29/2017

Breaking changes: Class name changed from ExceptionManager to ExceptionMgr