Method MapApiExceptionAsync
MapApiExceptionAsync(HttpContext, ApiException)
Maps an exception that is an ApiException, such as an error of the toolkit with an error code (see ErrorCode),
to the ApiException that is reported, such as one with a message of the application's own. The default implementation returns the
exception as it is. MapAsync(HttpContext, Exception) is not called for such an exception.
Declaration
protected virtual ValueTask<ApiException> MapApiExceptionAsync(HttpContext httpContext, ApiException exception)
Parameters
Returns