Releases: isaacnborges/custom-exception-middleware
Releases · isaacnborges/custom-exception-middleware
1.3.0
1.2.1
Add support to UnauthorizedException
Exception | Status code description | Status code |
---|---|---|
UnauthorizedException | Unauthorized | 401 |
Throw exception
throw new UnauthorizedException("Custom unauthorized exception message");
1.2.0
- Upgrade package to .NET 6
- Update nuget packages dependencies
- Improve examples summary
1.1.7
-
It's possible to customize the exception type when throw an exception, just pass the type in an exception constructor.
throw new CustomDomainException("Custom domain exception message", "OTHER_CUSTOM_TYPE");
-
The namespace for
CustomErrorResponse
class has been changed, the right path isCustomExceptionMiddleware.Responses