open-nav
    Preparing search index...

    Class NavApiError

    Raised when NAV replies with a GeneralErrorResponse, or with any other non-success HTTP status.

    Hierarchy (View Summary)

    Index
    • Parameters

      • init: {
            errorCode?: string;
            funcCode?: string;
            message: string;
            responseBody?: string;
            status: number;
            validationMessages?: NavValidationMessage[];
        }

      Returns NavApiError

    errorCode?: string

    result/errorCode, e.g. INVALID_SECURITY_USER.

    funcCode?: string

    result/funcCode, e.g. ERROR.

    responseBody: string

    Raw response body, kept for logging and bug reports.

    status: number

    HTTP status code of the response.

    validationMessages: NavValidationMessage[]

    Validation messages NAV attached to the error.