UNPKG

@toolbox-sdk/core

Version:
15 lines (14 loc) 619 B
import { Protocol } from './protocol.js'; /** * Logs a standardized error message to the console, differentiating between * Axios errors with response data, Axios errors without response data (e.g., network errors), * and other types of errors. * * @param {string} baseMessage - The base message to log, e.g., "Error fetching data from". * @param {unknown} error - The error object caught. */ export declare function logApiError(baseMessage: string, error: unknown): void; export declare class ProtocolNegotiationError extends Error { fallbackVersion: Protocol; constructor(fallbackVersion: Protocol); }