All files / websockets/exceptions ws-exception.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 121x   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;
  }
}