HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Method MapAsync

    MapAsync(HttpContext, Exception)

    Maps application-specific exceptions to the ApiException that should be reported to the client (e.g. validation library exceptions to a ValidationApiException). Returns null (the default) if the exception is not recognized, in which case it is treated as unexpected.

    Declaration
    protected virtual ValueTask<ApiException?> MapAsync(HttpContext httpContext, Exception exception)
    Parameters
    Type Name Description
    HttpContext httpContext
    Exception exception
    Returns
    Type Description
    ValueTask<ApiException>
    © Singulink. All rights reserved.