ApiException Class
A special exception that you can throw to return a specific HTTP response and error when combined with the cref="UnhandledApiExceptionFilter".
System.Exception
Westwind.AspNetCore.Errors.ApiException
Class Members
| Member | Description | |
|---|---|---|
| Constructor | Create a new exception with a message, status codeand optional error collection | |
| ErrorCode | ||
| Errors | An optional collection of errors that can be setto provide more error detail | |
| StatusCode | HTTP Status code to return when this exception ishandled by UnhandledExceptionFilter | |
Assembly: Westwind.AspNetCore.dll
© West Wind Technologies, 2025 • Updated: 2025-03-08
Comment or report problem with topic
