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

Search Results for

    Method HandleUnexpectedAsync

    HandleUnexpectedAsync(HttpContext, Exception)

    Handles an exception that was not recognized by MapAsync(HttpContext, Exception). The default implementation returns null if PropagateUnexpectedExceptions is true, otherwise it generates a reference ID, logs the exception via LogUnexpected(HttpContext, Exception, Guid) and returns a ServerErrorApiException with the message produced by CreateServerErrorMessage(Guid).

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