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