UNPKG

aws-crt

Version:

NodeJS bindings to the aws-c-* libraries

14 lines (13 loc) 532 B
/** * Represents an error encountered in native code. Can also be used to convert an error code(Number) into * a human-readable string. */ export declare class CrtError extends Error { readonly error: any; /** The original integer error code from the CRT */ readonly error_code?: number; /** The translated error name (e.g. AWS_ERROR_UNKNOWN) */ readonly error_name?: string; /** @var error - The original error. Most often an error_code, but possibly some other context */ constructor(error: any); }