UNPKG

rx-nostr

Version:

A library based on RxJS, which allows Nostr applications to easily communicate with relays.

43 lines 1.36 kB
export declare abstract class RxNostrError extends Error { } /** * This is thrown when WebSocket connection is closed unexpectedly. * You may see them in a stream made by `rxNostr.createAllErrorObservable()`. */ export declare class RxNostrWebSocketError extends RxNostrError { code?: number | undefined; constructor(code?: number | undefined); } /** * This is usually thrown when rx-nostr is used incorrectly (or possibly rx-nostr has a bug). * Please fix your program according to the message. * * Normally, you should not catch the exception. */ export declare class RxNostrInvalidUsageError extends RxNostrError { constructor(message: string); } /** * This is usually thrown when rx-nostr is used properly * but an error occurs due to external environmental causes. */ export declare class RxNostrEnvironmentError extends RxNostrError { constructor(message: string); } /** * This is thrown only by a bug inside rx-nostr. * * Normally, you should not catch the exception. */ export declare class RxNostrLogicError extends RxNostrError { constructor(); } /** * This is thrown when you attempt to access a disposed rx-nostr's resource. * * Normally, you should not catch the exception. */ export declare class RxNostrAlreadyDisposedError extends RxNostrError { constructor(); } //# sourceMappingURL=error.d.ts.map