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

Search Results for

    Method HandleAsync

    HandleAsync(HttpContext, Exception)

    Maps the specified exception to the ApiException that should be reported to the client.

    Declaration
    ValueTask<ApiException?> HandleAsync(HttpContext httpContext, Exception exception)
    Parameters
    Type Name Description
    HttpContext httpContext

    The HTTP context of the request that threw the exception.

    Exception exception

    The exception that was thrown.

    Returns
    Type Description
    ValueTask<ApiException>

    The ApiException to report (which may be exception itself if it is an ApiException), or null to apply the default handling described in the type remarks.

    © Singulink. All rights reserved.