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

Search Results for

    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
    Type Name Description
    HttpContext httpContext
    ApiException exception
    Returns
    Type Description
    ValueTask<ApiException>
    © Singulink. All rights reserved.