Package net.naijatek.myalumni.framework.struts

Examples of net.naijatek.myalumni.framework.struts.MyAlumniBaseException


     
      if (tempMember == null){
        memberDao.save(o);
      }
      else{
        throw new MyAlumniBaseException("myalumni.errorcode.00001")//User Already exists
      }
  }
View Full Code Here


            dbPort = prop.getProperty("dbport");
            dbDialet = prop.getProperty("hibernate.dialect");
            dbPath = prop.getProperty("dbpath");
           
            if (!(new File(dbPath).exists())){
              throw new MyAlumniBaseException("myalumni.errorcode.00005");
            }
           
            if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_MYSQL)){
              dbDialet = DBHelper.DB_TYPE_MYSQL;
            }
            else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_DB2)){
              dbDialet = DBHelper.DB_TYPE_DB2;
            }
            else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_ORACLE)){
              dbDialet = DBHelper.DB_TYPE_ORACLE;
            }
            else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_POSTGRESQL)){
              dbDialet = DBHelper.DB_TYPE_POSTGRESQL;
            }           
            else if (dbDialet != null && dbDialet.endsWith(DBHelper.DIALET_SYBASE)){
              dbDialet = DBHelper.DB_TYPE_SYBASE;
            }           
        } catch (IOException e) {
          //logger.error(e.getMessage());
          throw new MyAlumniBaseException("myalumni.errorcode.00003");    //Unable to read spring properties file.
        }
        finally {
            try {
              if (is != null) {
                is.close();
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.framework.struts.MyAlumniBaseException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.