NO-ERROR option
- Last Updated: January 18, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
- NO-ERROR
- If an error occurs on the statement with
NO-ERROR, the AVM undoes the action of the statement and continues execution with the next statement rather than raisingERROR. In addition, all error messages are diverted to the ERROR-STATUS system handle rather than being displayed to the current output device. The information stored in theERROR-STATUSsystem handle remains until the next statement usingNO-ERROR. To check for errors after a statement that uses theNO-ERRORoption:- Check the
ERROR-STATUS:ERRORattribute to see if an error was encountered during the execution of the statement. Note however that sometimes errors are treated as warnings andERROR-STATUS:ERRORis not set. - Alternatively, check if the
ERROR-STATUS:NUM-MESSAGESattribute is greater than zero to see if the AVM generated error or warning messages. - Use
ERROR-STATUS:GET-MESSAGE( message-num ) to retrieve a particular message, where message-num is 1 for the first message.
NO-ERRORhas no effect when aSTOPorQUITcondition occurs.If an error object is thrown to a statement that includes the
NO-ERRORoption, the information and messages in the error object are used to set theERROR-STATUSsystem handle.For more information on using
NO-ERRORand error handling in general, see ABL Error Handling. - Check the
See also
Assignment (=) statement, ASSIGN statement, BUFFER-COMPARE statement, BUFFER-COPY statement, Class-based method call, COMPILE statement, CONNECT statement, COPY-LOB statement, CREATE automation object statement, CREATE CALL statement, CREATE DATABASE statement, CREATE SAX-ATTRIBUTES statement, CREATE SAX-READER statement, CREATE SAX-WRITER statement, CREATE SERVER-SOCKET statement, CREATE SOCKET statement, CREATE statement, CREATE WIDGET-POOL statement, DDE ADVISE statement, DDE EXECUTE statement, DDE GET statement, DDE INITIATE statement, DDE REQUEST statement, DDE SEND statement, DDE TERMINATE statement, DELETE OBJECT statement, DELETE PROCEDURE statement, DELETE statement, DELETE WIDGET-POOL statement, DISCONNECT statement, DISPLAY statement, DYNAMIC-NEW statement, EXTENT statement, FIND statement, IMPORT statement, EMPTY TEMP-TABLE statement, INSERT statement, LOAD statement, NEW statement, Publish( ) event method, PUT-KEY-VALUE statement, RAW-TRANSFER statement, RELEASE OBJECT statement, RELEASE statement, REPOSITION statement, RUN STORED-PROCEDURE statement, RUN SUPER statement, SAVE CACHE statement, SET statement, SUBSCRIBE statement, Subscribe( ) event method, SUPER system reference, UNLOAD statement, Unsubscribe( ) event method, UPDATE statement, USE statement, VALIDATE statement