import sys

class dbnameerr(StandardError):
    def __init__(self, **kargs):
        sys.stderr.write("no such db name: %s"%(str(kargs)))
        sys.exit()
        
class urierr(StandardError):
    def __init__(self, **kargs):
        sys.stderr.write("uri error: %s\n"%(str(kargs)))

class urlerr(StandardError):
    def __init__(self, **kargs):
        sys.stderr.write("urlerr: %s\n"%(str(kargs)))

class haveserver(StandardError):
    def __init__(self, serveruri):
        sys.stderr.write("it's had this server: %s\n"%(str(serveruri)))
