Oracle® OLAP DML Reference 10g Release 1 (10.1) Part Number B10339-02 |
|
|
View PDF |
The ERRNAMES option controls whether the value of the ERRORTEXT option contains the name of the error (that is, the value of the ERRORNAME option) as well as the text of the error message.
Data type
BOOLEAN
Syntax
ERRNAMES = {NO|YES}
Arguments
When you set ERRNAMES to NO
, ERRORTEXT contains only the text of the error message.
When you set ERRNAMES to YES
(the default), ERRORTEXT contains the name and the text of the error message.
Notes
ERRORNAME, ERRORTEXT, and TRAP.
Examples
Example 11-29 ERRORTEXT Value Depending on ERRNAMES Setting
Suppose that you run the following program.
VARIABLE myint INTEGER myint = 35/0 SHOW ERRORTEXT
When the value of ERRNAMES is set to YES
, the program returns the following value for ERRORTEXT:
ERROR: (MXXEQ01) A division by zero was attempted. (If you want NA to be returned as the result of a division by zero, set the DIVIDEBYZERO option to YES.)
When the value of ERRNAMES is set to NO
, the program returns the following value for ERRORTEXT:
ERROR: A division by zero was attempted. (If you want NA to be returned as the result of a division by zero, set the DIVIDEBYZERO option to YES.)