summaryrefslogtreecommitdiff
path: root/lib/stdlib/test/shell_docs_SUITE_data/unknown_erlang_error_1_func.txt
diff options
context:
space:
mode:
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.txt17
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 @@
-spec error(Reason) -> no_return() when Reason :: term().
- Raises an exception of class error with the reason Reason,
- where Reason is any term. The error reason is {Reason, Where},
- where Where 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 error 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 error with the reason Reason. As
+ evaluating this function causes an exception to be thrown, it has
+ no return value.
+
+ The intent of the exception class error 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,