Skip to content

Releases: isaacnborges/custom-exception-middleware

1.3.0

21 Dec 20:04
e5b5cb6
Compare
Choose a tag to compare
  • Upgrade package to .NET 8
  • Update nuget packages dependencies

1.2.1

31 May 16:56
f39095d
Compare
Choose a tag to compare

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

22 Mar 17:19
Compare
Choose a tag to compare
  • Upgrade package to .NET 6
  • Update nuget packages dependencies
  • Improve examples summary

1.1.7

29 Dec 12:22
3c5e557
Compare
Choose a tag to compare
  • 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 is CustomExceptionMiddleware.Responses