摘要: 第四章 异常Table of Contents第四章 异常4.1 异常4.2 抛出异常4.3 try…catch4.3.1 缩减版本4.3.2 使用try…catch的编程惯例4.4 catch4.5 改进错误信息4.6 try…catch的编程风格4.6.1 经常会返回错误的程序4.6.2 出错几率比较小的程序4.7 捕获所有可能的异常4.8 新老两种异常处理风格4.9 栈跟踪第四章 异常4.1 异常Erlang通过throw(Exception)、exit(Exception)、erlang:error(Exception)来抛出异常。Erlang捕获异常的两种方式:使用try…catch 阅读全文
posted @ 2013-05-27 18:00 Cloud&Matrix 阅读(685) 评论(0) 推荐(0) 编辑