diff options
author | Satya Ortiz-Gagne <satya.ortiz-gagne@mila.quebec> | 2019-06-10 10:20:39 -0400 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-06-14 15:08:29 -0400 |
commit | 08b9469e2c71e06fdd70d607f281686746755073 (patch) | |
tree | 72066b7920e1c6aa0c8a0b390418c25a1afec1ad /diplomacy/utils/exceptions.py | |
parent | 9628cdadbf5a6380098168846dc51e4feadef6ad (diff) |
DAIDE - Added connection_handler and server
- Ability to open and close port when DAIDE games are started and stopped
- Can get the DAIDE port using a request
Diffstat (limited to 'diplomacy/utils/exceptions.py')
-rw-r--r-- | diplomacy/utils/exceptions.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/diplomacy/utils/exceptions.py b/diplomacy/utils/exceptions.py index 5cf4384..138bed9 100644 --- a/diplomacy/utils/exceptions.py +++ b/diplomacy/utils/exceptions.py @@ -86,6 +86,9 @@ class RequestException(ResponseException): class AdminTokenException(ResponseException): """ Invalid token for admin operations. """ +class DaidePortException(ResponseException): + """ Daide server not started for the game """ + class GameCanceledException(ResponseException): """ Game was cancelled. """ |