原创作者: hideto
阅读:1004次
评论:0条
更新时间:2011-06-01
语法:
一些BIFs:
try FuncOrExpressionSequence of Pattern1 [when Guard1] -> Expressions1; Pattern2 [when Guard2] -> Expressions2; ... catch ExceptionType: ExPattern1 [when ExGuard1] -> ExExpressions1; ExceptionType: ExPattern2 [when ExGuard2] -> ExExpressions2; ... after AfterExpressions end
一些BIFs:
exit(Why) throw(Why) erlang:error(Why) erlang:get_stacktrace()
评论 共 0 条 请登录后发表评论