Files
snort/packages/nostr/src/error.ts
2023-02-16 12:39:39 +01:00

10 lines
253 B
TypeScript

/**
* An error in the protocol. This error is thrown when a relay sends invalid or
* unexpected data, or otherwise behaves in an unexpected way.
*/
export class ProtocolError extends Error {
constructor(message?: string) {
super(message)
}
}