from afs.util.AFSError import AFSError


class ORMError(AFSError):
        # No specific Method now
        pass
    
class createEngineError(AFSError):
    def __init__(self, conf):
        self.message = """Cannot create an engine (connect to DB) using following options : DB_USER='%s',DB_HOST='%s',DB_PORT='%s',DB_TYPE='%s',DB_SID='%s'
        """ % (conf.DB_USER,conf.DB_HOST,  conf.DB_PORT, conf.DB_TYPE, conf.DB_SID)
        return

from afs.util.AFSError import AFSError


class ORMError(AFSError):
        # No specific Method now
        pass
    
class createEngineError(AFSError):
    def __init__(self, conf):
        self.message = """Cannot create an engine (connect to DB) using following options : DB_USER='%s',DB_HOST='%s',DB_PORT='%s',DB_TYPE='%s',DB_SID='%s'
        """ % (conf.DB_USER,conf.DB_HOST,  conf.DB_PORT, conf.DB_TYPE, conf.DB_SID)
        return

# No specific Method now Cannot create an engine (connect to DB) using following options : DB_USER='%s',DB_HOST='%s',DB_PORT='%s',DB_TYPE='%s',DB_SID='%s'