https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Error_Handling