1 module mysql.exception;
2 
3 
4 class MySQLException : Exception {
5 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
6 		super(msg, file, line);
7 	}
8 }
9 
10 class MySQLConnectionException: MySQLException {
11 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
12 		super(msg, file, line);
13 	}
14 }
15 
16 class MySQLProtocolException: MySQLException {
17 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
18 		super(msg, file, line);
19 	}
20 }
21 
22 class MySQLErrorException : Exception {
23 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
24 		super(msg, file, line);
25 	}
26 }
27 
28 class MySQLDuplicateEntryException : MySQLErrorException {
29 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
30 		super(msg, file, line);
31 	}
32 }
33 
34 class MySQLDataTooLongException : MySQLErrorException {
35 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
36 		super(msg, file, line);
37 	}
38 }
39 
40 class MySQLDeadlockFoundException : MySQLErrorException {
41 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
42 		super(msg, file, line);
43 	}
44 }
45 
46 class MySQLTableDoesntExistException : MySQLErrorException {
47 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
48 		super(msg, file, line);
49 	}
50 }
51 
52 class MySQLLockWaitTimeoutException : MySQLErrorException {
53 	this(string msg, string file = __FILE__, size_t line = __LINE__) pure {
54 		super(msg, file, line);
55 	}
56 }