UNPKG

@nervosnetwork/ckb-sdk-utils

Version:

Utils module of @nervosnetwork/ckb-sdk-core

60 lines (59 loc) 2 kB
import ErrorCode from './ErrorCode.js'; export declare class OutLenTooSmallException extends Error { code: ErrorCode; constructor(outlen: number, minLen: number); } export declare class OutLenTooLargeException extends Error { code: ErrorCode; constructor(outlen: number, maxLen: number); } export declare class KeyLenTooSmallException extends Error { code: ErrorCode; constructor(keyLen: number, minLen: number); } export declare class KeyLenTooLargeException extends Error { code: ErrorCode; constructor(keyLen: number, maxLen: number); } export declare class OutTypeException extends TypeError { code: ErrorCode; constructor(); } export declare class SaltTypeException extends TypeError { code: ErrorCode; constructor(); } export declare class SaltLenException extends Error { code: ErrorCode; constructor(saltLen: number, requiredLen: number); } export declare class InputTypeException extends TypeError { code: ErrorCode; constructor(); } export declare class KeyTypeException extends TypeError { code: ErrorCode; constructor(); } export declare class PersonalTypeException extends TypeError { code: ErrorCode; constructor(); } export declare class PersonalLenException extends Error { code: ErrorCode; constructor(personalLen: number, requiredLen: number); } declare const _default: { OutLenTooSmallException: typeof OutLenTooSmallException; OutLenTooLargeException: typeof OutLenTooLargeException; KeyLenTooSmallException: typeof KeyLenTooSmallException; KeyLenTooLargeException: typeof KeyLenTooLargeException; OutTypeException: typeof OutTypeException; SaltTypeException: typeof SaltTypeException; SaltLenException: typeof SaltLenException; InputTypeException: typeof InputTypeException; KeyTypeException: typeof KeyTypeException; PersonalTypeException: typeof PersonalTypeException; PersonalLenException: typeof PersonalLenException; }; export default _default;