1) badarg Bad argument. The argument is of wrong data type, or is otherwise badly formed.
参数错误,例如
erlang:exit(aa, zz).
2) badarith Bad argument in an arithmetic expression.
数字匹配错误,例如
2+a.
3)
{badmatch,V} Evaluation of a match expression failed. The value V did not match.
1> A = 3.
3
2> A = 4.
** exited: {{badmatch,4},[{erl_eval,expr,3}]} **
在我的shell中是这样
5> A = 3.
3
6> A = 4.
** exception error: no match of right hand side value 4
4)
function_clause No matching function clause is found when evaluating a function call.
没有匹配的函数
在文件test.erl 58,59行
58 t3(a) ->
59 {ok, t3}.
test:t3(b).
** exception error: no function clause matching test:t3(b) (test.erl, line 58)
5)
noproc Trying to link to a non-existing process.
6)
undef The function cannot be found when evaluating a function call.
参数错误,例如
erlang:exit(aa, zz).
2) badarith Bad argument in an arithmetic expression.
数字匹配错误,例如
2+a.
3)
{badmatch,V} Evaluation of a match expression failed. The value V did not match.
1> A = 3.
3
2> A = 4.
** exited: {{badmatch,4},[{erl_eval,expr,3}]} **
在我的shell中是这样
5> A = 3.
3
6> A = 4.
** exception error: no match of right hand side value 4
4)
function_clause No matching function clause is found when evaluating a function call.
没有匹配的函数
在文件test.erl 58,59行
58 t3(a) ->
59 {ok, t3}.
test:t3(b).
** exception error: no function clause matching test:t3(b) (test.erl, line 58)
5)
noproc Trying to link to a non-existing process.
6)
undef The function cannot be found when evaluating a function call.