summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorLibreOfficiant <LibreOfficiant@sfr.fr>2019-12-15 11:07:54 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-12-16 13:41:12 +0100
commit6ee3bd0f902405f9ec033d866a51e4e1b2009599 (patch)
treee0a046ed444bf344bb7559cf5f84b1082a18e7d9 /source
parentf84cdd549df7505c347ee7a066ede854b765db10 (diff)
Raising errors with Error statement
Change-Id: I61144f5c37aae5c5f46b3eab2a2c453cc9c786a7 Reviewed-on: https://gerrit.libreoffice.org/85164 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r--source/text/sbasic/shared/03050300.xhp18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/text/sbasic/shared/03050300.xhp b/source/text/sbasic/shared/03050300.xhp
index 31d92f21d9..8896763a65 100644
--- a/source/text/sbasic/shared/03050300.xhp
+++ b/source/text/sbasic/shared/03050300.xhp
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
-
<!--
* This file is part of the LibreOffice project.
*
@@ -17,7 +16,6 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
-
<helpdocument version="1.0">
<meta>
<topic id="textsbasicshared03050300xml" indexer="include" status="PUBLISH">
@@ -33,20 +31,22 @@
<bookmark xml-lang="en-US" branch="index" id="bm_id3159413"><bookmark_value>Error function</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3159413" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03050300.xhp" name="Error Function">Error Function</link></paragraph>
-<paragraph role="paragraph" id="par_id3148663" xml-lang="en-US">Returns the error message that corresponds to a given error code.</paragraph>
+<paragraph role="paragraph" id="par_id3148663" xml-lang="en-US">Returns the error message that corresponds to a value or raises a given error context.</paragraph>
</section>
<paragraph role="heading" id="hd_id3153379" xml-lang="en-US" level="2">Syntax:</paragraph>
<bascode>
-<paragraph role="bascode" id="par_id3154366" xml-lang="en-US">Error (Expression)</paragraph>
+<paragraph role="bascode" id="par_id631576404838377">Error</paragraph>
+<paragraph role="bascode" id="par_id3154366" xml-lang="en-US">Error(expression)</paragraph>
+<paragraph role="bascode" id="par_id231576404629080">Error err_code</paragraph>
</bascode>
<paragraph role="heading" id="hd_id3145173" xml-lang="en-US" level="2">Return value:</paragraph>
-<paragraph role="paragraph" id="par_id3154125" xml-lang="en-US">String</paragraph>
+<paragraph role="paragraph" id="par_id3154125" xml-lang="en-US">String or raised error context</paragraph>
<paragraph role="heading" id="hd_id3150869" xml-lang="en-US" level="2">Parameters:</paragraph>
+<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US">If no argument is provided, the Error function returns the error message of the most recent error that occurred during program execution.</paragraph>
<paragraph role="paragraph" id="par_id3153193" xml-lang="en-US">
-<emph>Expression:</emph> Any numeric expression that contains the error code of the error message that you want to return.</paragraph>
-<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US">If no parameters are passed, the Error function returns the error message of the most recent error that occurred during program execution.</paragraph>
+<emph>expression:</emph> Any numeric expression whose error code can be mapped to an existing error message. An empty string is returned if the error code does not exist.</paragraph>
+<paragraph role="paragraph" id="par_id351576405235602" xml-lang="en-US"><emph>err_code:</emph> Any value that corresponds to an existing error code.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#allerrors"/><comment>fixed i60953</comment>
</body>
-</helpdocument>
-
+</helpdocument> \ No newline at end of file