Exception Thowable分为Error、Exception RuntimeException 非检查异常,可以不用强制捕获 捕获异常 try{ 可能出现异常的代码 } catch(Exception e1){ 捕获块 } catch(Exception e2){ 捕获块 } catch( ...
分类:
其他好文 时间:
2016-06-26 23:56:14
阅读次数:
267
C++11 的 lambda 表达式规范如下: [ capture ] ( params ) mutable exception attribute -> ret { body } (1) [ capture ] ( params ) -> ret { body } (2) [ capture ] ...
分类:
编程语言 时间:
2016-06-25 23:00:42
阅读次数:
258
1.异常体系 |Throwable 所有错误或异常的父类 |Error(错误) |Exception(异常)一般能通过代码处理 |运行时异常:方法上可以不声明,调用者可以不处理 |编译时异常:方法上必须要声明,调用者必须要处理 2.为何有差异 运行时异常都是可以通过程序员良好的编程习惯避免的,所以j ...
分类:
编程语言 时间:
2016-06-25 20:20:42
阅读次数:
226
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'companycode != ...
分类:
其他好文 时间:
2016-06-25 17:49:13
阅读次数:
5798
开启事务之前先判断事务是否已经打开,方法如下: JdbcTransaction tx=(JdbcTransaction) session.beginTransaction(); 改为JdbcTransaction tx = session.getTransaction().getLocalStatu ...
分类:
Web程序 时间:
2016-06-24 23:44:57
阅读次数:
368
#region 记录日志 private void WriteLog(Exception ex, string msg) { try { string applicationStartupPath = Path.GetDirectoryName(Assembly.GetExecutingAssemb ...
分类:
其他好文 时间:
2016-06-24 12:27:23
阅读次数:
119
内存溢出可能有如下的错误: 错误1: java.lang.OutOfMemoryError: PermGen space 错误2: Exception in thread "http-apr-8080-exec-2" 出现如上的错误,解决方法如下: 1.双击Tomcat 2.点击open launc ...
分类:
其他好文 时间:
2016-06-24 12:24:27
阅读次数:
145
An exception occurred during the Install phase. System.Security.SecurityException The source was not found, but some or all event logs could not be se ...
分类:
数据库 时间:
2016-06-23 20:28:31
阅读次数:
179
在刷新下载进度时 Xcode报错误: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in s ...
分类:
其他好文 时间:
2016-06-23 20:26:15
阅读次数:
278