JPolicy NuGet Library

JPolicy is a configurable error exception handler. It also includes definition of policies; just like to retry method execution and http request when failed,
default error message display during the exception, and method to execute to get the verbose exception to display or for logging purposes.


1. NET Core 3.1
2. Visual Studio or VS Code

How to use:
1. Go to Tools and select Manage Nuget Packages and Search for JPolicy library
2. Install-Package JPolicy -Version 1.0.1

Exception Retry Policy:

Using Exception Retry Policy

Exception output:

Error logs

Http Retry Policy:
Register service in Startup.cs and add the JPolicy.HttpRetryPolicy method in Add Policy Handler.

Retry times request base on configuration.

Looking for a JOB? Signup @ jobbhy and be notified!

Want to post a JOB as employer? Contact and be one us!




Axios Refresh Token (A simple and straightforward request interceptor.)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store