Create websocket exception filter

landing-page-layout
MiguelMLorente 2025-02-04 23:34:23 +01:00
parent c0c7a8468e
commit eff695837b
1 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,9 @@ export class PlayerNotFoundException extends WebSocketException {
export class GameNotFoundException extends WebSocketException {
constructor(gameId: string) {
super('Unable to find game from ID: ' + gameId, ErrorCode.GAME_NOT_FOUND);
super(
'Unable to find game from ID: ' + gameId,
ErrorCode.GAME_NOT_FOUND,
);
}
}