码迷,mamicode.com
首页 >  
搜索关键字:exception throws throw    ( 16271个结果
Delphi 异常类
----------------------------------------------------------------------EExternal = class(Exception) EExternalException = class(EExternal) 无效的异常码 整数计算异常...
分类:其他好文   时间:2014-07-23 16:20:51    阅读次数:212
两个Long类型相乘溢出怎么解决
public static void main(String[] args) throws Exception { long a = Long.MAX_VALUE; long b = Long.MAX_VALUE; BigDecimal ba = new B...
分类:其他好文   时间:2014-07-23 16:20:01    阅读次数:164
Java 数据库连接安全关闭代码实现
if(conn != null) { try { conn.close(); } catch(Exception e) { e.printStackTrace(); } conn = null; }写个工具类来关也可以: public static void close...
分类:数据库   时间:2014-07-23 15:01:16    阅读次数:329
struts2: 通过流输出实现exce导出l
参考下面代码,在Action中加一个方法: 1 // 导出excel 2 public String excel() throws Exception { 3 StringBuffer excelBuf = new StringBuffer(); 4 excelBuf...
分类:其他好文   时间:2014-07-23 12:51:16    阅读次数:193
'EntityValidationErrors' property for more details
很多小猿遇到这个Exception 的时候,都会有点无厘头。这个时候最好try-- catch下,找到出错的地方。本人习惯在页面上加个lable标签,把exc msg(exception message)输出的到lable,这样可以省的再调试,直接可以看到错误信息。但有时还是需要去打断点调试,这样才...
分类:其他好文   时间:2014-07-23 12:46:56    阅读次数:197
Error -- Class not registered
Error : An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x8...
分类:其他好文   时间:2014-07-22 22:46:53    阅读次数:194
Java异常处理面试题归纳
对常见关于exception面试题的归纳...
分类:编程语言   时间:2014-07-22 14:17:58    阅读次数:220
黑马程序员——自定义类加载器
自定义类加载器是在是血的不怎明白这里只学会了一个简单的加密解密方法//定义一个加密方法public static void md(InputStream inputStream,OutputStream outputStream) throws Exception{int b = 0;while((...
分类:其他好文   时间:2014-07-22 00:21:33    阅读次数:196
mybatis源码分析之cache创建
XMLMapperBuilder.java ? //解析<cache?/>?配置元素,创建cache对象 private?void?cacheElement(XNode?context)?throws?Exception?{ ????if?(context?!=?null)?{ ??????String?typ...
分类:其他好文   时间:2014-07-21 23:31:03    阅读次数:414
第五课 Struts的控制器【续】Action类的execute()方法
Action类的execute()方法: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException ;...
分类:其他好文   时间:2014-07-21 22:46:07    阅读次数:280
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!