Except (keyword)
From RemObjects Software
The except keyword is used to mark the beginning of the block of instructions that handles an exception in the try statement. If the except block can process the exception, the program continues working.
With the first version, if the try block generates an exception, the except block is carried out. It is used for undertaking an alternative action, when something unexpectedly goes wrong.
try //statements except ShowMessage('Unknown error!'); end;
The second version is similar to the first, but determines various actions for various types of exceptions:
try //statements except on E:Exception do begin MessageBox.Show('Found an error: '+E.Message); end; end;
The Exception Handling topic has more information for the try, except and finally options.
See Also
Product: RemObjects Oxygene (formerly known as Chrome)
Current version: 3.0
Previous Versions: 'Joyride' (2.0), 'Floorshow' (1.5), 'Adrenochrome' (1.0)
Glossary — Keywords — Language Features — Platform Features — Samples — Articles — How To — Issues
Categories: Text | Oxygene | Language | Keyword
