summaryrefslogtreecommitdiff
path: root/client/err.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/err.hpp')
-rw-r--r--client/err.hpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/client/err.hpp b/client/err.hpp
deleted file mode 100644
index 5a6691d..0000000
--- a/client/err.hpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#pragma once
-#include "strings.hpp"
-
-namespace err
-{
- enum ErrCode_t {
- ERR_NONE = 0,
- ERR_WSA = 1,
- ERR_CONNECT = 2,
- };
-
- const char* translate_err( int code ) {
- switch( code ) {
- case ERR_WSA:
- return xors( "socket error" );
- case ERR_CONNECT:
- return xors( "connection error" );
- }
-
- return xors( "unknown error" );
- }
-} \ No newline at end of file