최초작성 |
2007/04/12 15:17:06 |
Contents
에러값의미
워.. Erlang 에러가 너무 생소해서.. 이거라도 적어둔다. Erlang 문서의 error 부분에 나온 내용. 정확히는 exit reasons.
When a run-time error occurs, that is an exception of class error, the exit reason is a tuple {Reason,Stack}. Reason is a term indicating the type of error:
badarg |
Argument is of wrong type. |
badarith |
Argument is of wrong type in an arithmetic expression. |
{badmatch,V} |
Evaluation of a match expression failed. The value V did not match. |
function_clause |
No matching function clause is found when evaluating a function call. |
{case_clause,V} |
No matching branch is found when evaluating a case expression. The value V did not match. |
if_clause |
No true branch is found when evaluating an if expression. |
{try_clause,V} |
No matching branch is found when evaluating the of-section of a a try expression. The value V did not match. |
undef |
The function cannot be found when evaluating a function call. |
{badfun,F} |
There is something wrong with a fun F. |
{badarity,F} |
A fun is applied to the wrong number of arguments. F describes the fun and the arguments. |
timeout_value |
The timeout value in a receive..after expression is evaluated to something else than an integer or infinity. |
noproc |
Trying to link to a non-existing process. |
{nocatch,V} |
Trying to evaluate a throw outside a catch. V is the throw term. |
system_limit |
A system limit has been reached. See Efficiency Guide for information about system limits. |
