Create websocket exception filter
parent
c0c7a8468e
commit
eff695837b
|
|
@ -21,6 +21,9 @@ export class PlayerNotFoundException extends WebSocketException {
|
||||||
|
|
||||||
export class GameNotFoundException extends WebSocketException {
|
export class GameNotFoundException extends WebSocketException {
|
||||||
constructor(gameId: string) {
|
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,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue