diff options
Diffstat (limited to 'lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt')
-rw-r--r-- | lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt b/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt index 6324d2884e..18c0010a75 100644 --- a/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt +++ b/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt @@ -1,15 +1,14 @@ [;1m-spec error(Reason) -> no_return() when Reason :: term().[0m - Raises an exception of class [;;4merror[0m with the reason [;;4mReason[0m, - where [;;4mReason[0m is any term. The error reason is [;;4m{Reason, Where}[0m, - where [;;4mWhere[0m is a list of the functions most recently called (the - current function first). As evaluating this function causes an - exception to be thrown, it has no return value. The intent of the - exception class [;;4merror[0m is to signal that an unexpected error has - happened (for example, a function is called with a parameter that - has an incorrect type). See the guide about errors and error - handling for additional information. Example: + Raises an exception of class [;;4merror[0m with the reason [;;4mReason[0m. As + evaluating this function causes an exception to be thrown, it has + no return value. + + The intent of the exception class [;;4merror[0m is to signal that an + unexpected error has happened (for example, a function is called + with a parameter that has an incorrect type). See the guide about + errors and error handling for additional information. Example: > catch error(foobar). {'EXIT',{foobar,[{shell,apply_fun,3, |