UNPKG

@handy-common-utils/misc-utils

Version:
19 lines 781 B
/** * Checks if the error could be a networking timeout error. * @param err The error to check. * @returns True if the error is a networking timeout error, false otherwise. */ export declare function couldBeNetworkingTimeoutError(err: unknown): boolean; /** * Checks if the error could be a temporary networking error. * @param err The error to check. * @returns True if the error is a temporary networking error, false otherwise. */ export declare function couldBeTemporaryNetworkingError(err: unknown): boolean; /** * Checks if the error could be a server error. * @param err The error to check. * @returns True if the error is a server error, false otherwise. */ export declare function couldBeServerError(err: unknown): boolean; //# sourceMappingURL=errors.d.ts.map