public CDBExceptionHandler(System.Exception i_ExceptionToHandle, IPException.IDBExceptionInterpret i_ExceptionInterpret) { m_Exception = i_ExceptionToHandle; InitErrorMsg(); m_ErrorIndex = i_ExceptionInterpret.getDBErrorIndex(m_Exception); if (m_ErrorIndex == DBErrorIndex.OtherDBException) { setErrorMsg(DBErrorIndex.OtherDBException, "Lỗi sau đây xuất hiện " + m_Exception.Message); } }
public void setErrorMsg(DBErrorIndex i_DBErrorIndex, string i_CustomizedErrorMessage) { // Dùng để định các thông báo mong muốn trước khi gọi showErrorMessage // // m_ErrorMsg[(int)i_DBErrorIndex] = i_CustomizedErrorMessage; }