1 2 3 4 5 6 7 8 9 10 11 12 | 1x 6x 6x 6x 3x | export class WsException extends Error { public readonly message: any; constructor(private readonly error: string | object) { super(); this.message = error; } public getError(): string | object { return this.error; } } |