2018-05-26 15:07:17 +00:00
|
|
|
class DataBaseError(Exception):
|
|
|
|
'''Base class for exceptions in this module.'''
|
|
|
|
pass
|
|
|
|
|
|
|
|
class LocationInitError(DataBaseError):
|
|
|
|
'''Error in initializing Location'''
|
|
|
|
|
2018-07-20 01:18:22 +00:00
|
|
|
class TunnelInitError(DataBaseError):
|
|
|
|
'''Error in initializing Tunnel'''
|
|
|
|
|
2018-05-26 15:07:17 +00:00
|
|
|
|
2018-07-15 15:56:56 +00:00
|
|
|
class LocationLookUpError(DataBaseError):
|
2018-05-29 14:04:01 +00:00
|
|
|
'''Error in finding location in database'''
|
|
|
|
|
2018-07-15 15:56:56 +00:00
|
|
|
class DeleteEntryError(DataBaseError):
|
2018-06-03 02:42:31 +00:00
|
|
|
'''Error in deleting entry'''
|
|
|
|
|
|
|
|
class UsernameLookupFailed(Exception):
|
|
|
|
'''Error in username lookup, is the player's nickname set correctly? *stares at aeskdar*'''
|
|
|
|
|
2018-06-30 15:07:56 +00:00
|
|
|
class PlayerNotFound(DataBaseError):
|
|
|
|
'''Player not found in database.'''
|
|
|
|
|
2018-07-15 15:56:56 +00:00
|
|
|
class LocationNameNotUniqueError(DataBaseError):
|
|
|
|
'''A location by that name is already in the database.'''
|
|
|
|
|
2018-06-30 15:07:56 +00:00
|
|
|
|