Package easyJ.common

Examples of easyJ.common.EasyJException


                lga.login(user);
            }
        }

        if (GenericValidator.isBlankOrNull(className)) {
            throw new EasyJException(
                    null,
                    "easyJ.http.servlet.RequestProcessor.processPopulate(HttpServletRequest request,HttpServletResponse response)",
                    "servlet没有能够得到要处理的数据,请查看生成客户端的代码", "服务器忙");
        }
View Full Code Here


            transDeep = 0;
        } catch (SQLException ex) {
            String clientMessage = "服务器忙";
            String location = "easyJ.database.transaction.TransactionJDBCImpl.begin()";
            String logMessage = "数据库事务启动失败!信息:" + ex.getMessage();
            EasyJException ee = new EasyJException(ex, location, logMessage,
                    clientMessage);
            throw ee;
        }
    }
View Full Code Here

                conn = null;
            } else {
                String clientMessage = "服务器忙";
                String location = "easyJ.database.transaction.TransactionJDBCImpl.commit()";
                String logMessage = "数据库事务提交失败!信息:" + "不能没有启动事务就提交";
                throw new EasyJException(null, location, logMessage,
                        clientMessage);
            }
        } catch (SQLException ex) {
            String clientMessage = "服务器忙";
            String location = "easyJ.database.transaction.TransactionJDBCImpl.commit()";
            String logMessage = "数据库事务提交失败!信息:" + ex.getMessage();
            EasyJException ee = new EasyJException(ex, location, logMessage,
                    clientMessage);
            throw ee;

        }
    }
View Full Code Here

            }
        } catch (SQLException ex) {
            String clientMessage = "服务器忙";
            String location = "easyJ.database.transaction.TransactionJDBCImpl.end()";
            String logMessage = "数据库事务回滚失败!信息:" + ex.getMessage();
            EasyJException ee = new EasyJException(ex, location, logMessage,
                    clientMessage);
            throw ee;
        } finally {
            try {
                conn.close();
View Full Code Here

    String[] accurateProperties = { "userName", "password" };
    dp.setAccurateProperties(accurateProperties);

    ArrayList users = dp.query(user);
    if (users.size() == 0) {
      throw new EasyJException(null,
          "cn.dr.requirement.elicitation.action.LoginAction", user
              .getUserName()
              + "的用户名密码错", "用户名密码错");
    } else if (!((SysUser) users.get(0)).getPassword().equals(
        user.getPassword())) {

      throw new EasyJException(null,
          "cn.dr.requirement.elicitation.action.LoginAction", user
              .getUserName()
              + "的用户名密码错", "用户名密码错");
    }
View Full Code Here

        } catch (IOException ex2) {
            ex2.printStackTrace();
            String clientMessage = "服务器忙";
            String location = "easyJ.http.servlet.RequestProcessor.forward(HttpServletRequest request,HttpServletResponse response)";
            String logMessage = "转向目标" + returnPath + " 抛出IOException";
            EasyJException ee = new EasyJException(ex2, location, logMessage,
                    clientMessage);
            throw ee;
        } catch (ServletException ex2) {
            ex2.printStackTrace();
            String clientMessage = "服务器忙";
            String location = "easyJ.http.servlet.RequestProcessor.forward(HttpServletRequest request,HttpServletResponse response)";
            String logMessage = "转向目标" + returnPath + " 抛出ServletException";
            EasyJException ee = new EasyJException(ex2, location, logMessage,
                    clientMessage);
            throw ee;
        }

    }
View Full Code Here

TOP

Related Classes of easyJ.common.EasyJException

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.