1 package net.sourceforge.simplegamenet.framework.transport;
2
3 import java.io.IOException;
4
5 public class ClientLoginException extends IOException {
6
7 public static final int BANNED = 0x0100;
8 public static final int CLIENT_SGN_VERSION = 0x0300;
9 public static final int SERVER_SGN_VERSION = 0x0301;
10 public static final int GAME_NOT_FOUND = 0x0400;
11 public static final int CLIENT_GAME_VERSION = 0x0500;
12 public static final int SERVER_GAME_VERSION = 0x0501;
13 public static final int LOGIN_NOT_ACCEPTED = 0x0600;
14 public static final int PROTOCOL_VIOLATION = 0xFFFF;
15
16 private int type;
17
18 public ClientLoginException(int type) {
19 this(type, "");
20 }
21
22 public ClientLoginException(int type, String string) {
23 super(string);
24 this.type = type;
25 }
26
27 public int getType() {
28 return type;
29 }
30
31 }