码迷,mamicode.com
首页 >  
搜索关键字:unexpected exception    ( 10924个结果
异常处理try-catch-finally
php5.5新增 Finally模块try { //好好干,出了问题不要怕,外面有人接应} catch (HttpException $e) { //时刻准备着,处理上面抛出的HTTP问题} catch (Exception $e) { //时刻准备着,处理他们都处理不了的问题} finally {...
分类:其他好文   时间:2014-05-16 18:14:57    阅读次数:372
【Exception】 java.lang.NoSuchMethodError: android.app.AlertDialog$Builder.setOnDismissListener
f(Build.VERSION.SDK_INT >10) builder =newAlertDialog.Builder(getActivity(), R.style.Theme.Sherlock.Dialog);else builder =newAlertDialog.Builder(...
分类:移动开发   时间:2014-05-16 07:49:31    阅读次数:606
Slidingmenu 仿 网易 360手机助手 框架 直接拿来用
天气太热了,上班也没什么精神头。索性  整理下项目中用到的 框架 抽出来,方便下次直接用吧。 大家应该都知道 slidingmenu的。就是github 上的一个开源框架  可以实现 左右滑动, 时下 好多app都用到了,比如 网易新闻 ,360手机助手, 糗事百科,ireader. 应该算是很火的一个框架了。 no exception  我们公司的项目也用到了。 废话有点多。下面直奔主题吧...
分类:移动开发   时间:2014-05-15 07:12:48    阅读次数:392
Android 关于获取摄像头帧数据解码
// 创建保存照片文件夹 private void CreateFileJPG() { File file = new File("/sdcard/image"); if (!file.exists()) { try { file.mkdirs(); } catch (Exception e) { // TODO: handle exceptio...
分类:移动开发   时间:2014-05-15 06:39:58    阅读次数:434
Shark0.9.0安装
Shark0.9.0错误如下: Starting the Shark Command Line Client Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/hive/cli/CliDriver : Unsupported major.minor version 51.0...
分类:其他好文   时间:2014-05-15 05:42:17    阅读次数:375
Django -> 添加ModelAdmin.date_hierarchy
第一次使用ModelAdmin.date_query,在admin.py中添加后,出现了这样的错误 ImproperlyConfigured exception (pytz isn't installed) 使用以下命令安装pytz之后,问题依然没有解决 $sudo pip install pytz 根据搜索结果,原来需要把settings.p中的USE_TZ = True修改为USE_T...
分类:其他好文   时间:2014-05-15 03:42:23    阅读次数:224
Spring JPA 缺少 JAR 引起异常
记录整合中缺少 JAR 文件引起的异常版本 Spring 3+ Hibernate 4+ JPA 1、Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingExceptio....
分类:编程语言   时间:2014-05-14 23:25:27    阅读次数:488
spring事务心得积累
一、使用事务 1、spring配置文件中开启事务注解机制 2、在方法上使用@Transactional注解来使用事务 二、使用事务注意事项 1、只能在一个类中调用另一个类中的事务方法。 2、事务默认对RunTimeException进行回滚,用rollbackfor=Exception.class可指定对所有异常回滚。 3、...
分类:编程语言   时间:2014-05-14 19:19:16    阅读次数:379
php 异常捕获
1 首先是try,catch getMessage();}function file_open($path){ if(!file_exists($path)) //如果文件无法找到,抛出异常对象 { throw new Exception("文件无法找到", 1); } if(!f...
分类:Web程序   时间:2014-05-14 13:19:14    阅读次数:427
xpath
1 // 使用xpath解决路径的问题 2 public static void findAnswer(File file)throws Exception{ 3 // 10.1获取解析器 4 SAXReader reader = getReader...
分类:其他好文   时间:2014-05-14 07:32:10    阅读次数:228
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!