1 // eslint-disable-next-line max-classes-per-file
2 export class InvalidPersistentSessionError extends Error {
3 constructor(message?: string) {
4 super(['Invalid persistent session', message].filter(Boolean).join(':'));
5 Object.setPrototypeOf(this, InvalidPersistentSessionError.prototype);
9 export class InvalidForkProduceError extends Error {
10 constructor(message?: string) {
11 super(['Invalid fork production', message].filter(Boolean).join(':'));
12 Object.setPrototypeOf(this, InvalidForkProduceError.prototype);
16 export class InvalidForkConsumeError extends Error {
17 constructor(message?: string) {
18 super(['Invalid fork consumption', message].filter(Boolean).join(':'));
19 Object.setPrototypeOf(this, InvalidForkConsumeError.prototype);