Package org.fto.jthink.exception

Examples of org.fto.jthink.exception.JThinkRuntimeException


     
    } catch (Exception ex) {
      if (ex instanceof JThinkRuntimeException) {
        throw (JThinkRuntimeException) ex;
      }
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_JB_LOOKUP_EJB_FAILURE,
            "Look up ejb failure! jndi = " + jndi, ex);
    } finally {
      if (ctx != null) {
        try {
          ctx.close();
        } catch (NamingException e) {
          throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_JB_LOOKUP_EJB_FAILURE,
              "Look up ejb failure! jndi = " + jndi, e);
        }
      }
    }
  }
View Full Code Here


      }
      rs = pstmt.executeQuery();
      return getResultMaker().create(rs, doClazz, startIndex, rowlen);
    }
    catch (SQLException ex) {
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_DB_EXEC_SQL_EXCEPTION, ex);
    }
    finally {
      releaseResultSet(rs);
      releasePreparedStatement(pstmt);
    }
View Full Code Here

                                              String groupby, String orderby,
                                              int startIndex, int rowLen
                                              ){

    if(startIndex<0){
      throw new JThinkRuntimeException("startIndex不能小于0!");
    }
    if(rowLen<0){
      throw new JThinkRuntimeException("rowLen不能小于0!");
    }

    ObjectBuffered values = null;   

    StringBuffered sqlStr = new StringBuffered(16)
View Full Code Here

      SAXBuilder builder = new SAXBuilder();
      reader = new StringReader(xmlStr);
      Document xmlJDoc = builder.build(reader);
      return xmlJDoc.getRootElement();
    } catch (Exception e) {
      throw new JThinkRuntimeException(
          JThinkErrorCode.ERRCODE_XML_XML_STRING_LOAD_FAILED,
          "解析XML串为org.jdom.Element时发生异常!", e);
    }finally{
      if(reader!=null){
        try {
          reader.close();
        } catch (IOException e1) {
          throw new JThinkRuntimeException(e1);
        }
      }
    }
  }
View Full Code Here

    try {
      SAXBuilder builder = new SAXBuilder();
      Document xmlJDoc = builder.build(new java.io.File(fileName));
      return xmlJDoc.getRootElement();
    } catch (Exception e) {
      throw new JThinkRuntimeException(
          JThinkErrorCode.ERRCODE_XML_XML_FILE_LOAD_FAILED,
          "解析XML文件为org.jdom.Element时发生异常!", e);
    }   
  }
View Full Code Here

    try {
      SAXBuilder builder = new SAXBuilder();
      Document xmlJDoc = builder.build(file);
      return xmlJDoc.getRootElement();
    } catch (Exception e) {
      throw new JThinkRuntimeException(
          JThinkErrorCode.ERRCODE_XML_XML_FILE_LOAD_FAILED,
          "解析XML文件为org.jdom.Element时发生异常!", e);
    }   
  }
View Full Code Here

    try {
      SAXBuilder builder = new SAXBuilder();
      Document xmlJDoc = builder.build(is);
      return xmlJDoc.getRootElement();
    } catch (Exception e) {
      throw new JThinkRuntimeException(
          JThinkErrorCode.ERRCODE_XML_XML_FILE_LOAD_FAILED,
          "解析XML文件为org.jdom.Element时发生异常!", e);
    }   
  }
View Full Code Here

    try {
      SAXBuilder builder = new SAXBuilder();
      Document xmlJDoc = builder.build(reader);
      return xmlJDoc.getRootElement();
    } catch (Exception e) {
      throw new JThinkRuntimeException(
          JThinkErrorCode.ERRCODE_XML_XML_FILE_LOAD_FAILED,
          "解析XML文件为org.jdom.Element时发生异常!", e);
    }   
  }
View Full Code Here

    try {
      SAXBuilder builder = new SAXBuilder();
      Document xmlJDoc = builder.build(url);
      return xmlJDoc.getRootElement();
    } catch (Exception e) {
      throw new JThinkRuntimeException(
          JThinkErrorCode.ERRCODE_XML_XML_FILE_LOAD_FAILED,
          "解析XML文件为org.jdom.Element时发生异常!", e);
    }   
  }
View Full Code Here

     
    } catch (Exception ex) {
      if (ex instanceof JThinkRuntimeException) {
        throw (JThinkRuntimeException) ex;
      }
      throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_JB_LOOKUP_EJB_FAILURE,
            "Look up ejb failure! jndi = " + jndi, ex);
    } finally {
      if (ctx != null) {
        try {
          ctx.close();
        } catch (NamingException e) {
          throw new JThinkRuntimeException(JThinkErrorCode.ERRCODE_JB_LOOKUP_EJB_FAILURE,
              "Look up ejb failure! jndi = " + jndi, e);
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.fto.jthink.exception.JThinkRuntimeException

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.