@fibercom/routeros-api
Version:
Robust MikroTik RouterOS API client for Node.js and TypeScript
16 lines (15 loc) • 629 B
TypeScript
/**
* A custom exception class used for handling RouterOS-specific errors.
* Wraps error codes with human-readable messages and formatting support.
*/
export declare class RosException extends Error {
errno: string;
/**
* Construct a RosException with a specific error code and optional context.
* Replaces placeholders in the error message using the extras provided.
*
* @param errno - The error code string (e.g., 'SOCKTMOUT', 'UNREGISTEREDTAG')
* @param extras - Optional values to interpolate into the error message.
*/
constructor(errno: string, extras?: Record<string, any>);
}