/** * @file * Themis error codes and exception types. */ /** * Themis error code constants. * * Keep in sync with . */ export declare enum ThemisErrorCode { SUCCESS = 0, FAIL = 11, INVALID_PARAMETER = 12, NO_MEMORY = 13, BUFFER_TOO_SMALL = 14, DATA_CORRUPT = 15, INVALID_SIGNATURE = 16, NOT_SUPPORTED = 17, SSESSION_SEND_OUTPUT_TO_PEER = 1, SSESSION_KA_NOT_FINISHED = 19, SSESSION_TRANSPORT_ERROR = 20, SSESSION_GET_PUB_FOR_ID_CALLBACK_ERROR = 21, SCOMPARE_SEND_OUTPUT_TO_PEER = 1, SCOMPARE_MATCH = 21, SCOMPARE_NO_MATCH = 22, SCOMPARE_NOT_READY = 0 } export declare class ThemisError extends Error { private subsystem; private errorCode; constructor(subsystem: string, errorCode: ThemisErrorCode, additional_message?: string); static description(errorCode: ThemisErrorCode, subsystem: string): string; }