company logo

Error handling functions

In order to handle errors properly, several error handling functions are provided. Errors are stored in different error objects, which are assigned to error classes, which contain all the errors defined for an error class. The following errors can be provided by calling different system interface functions.

  • ::SOSError() in sosi - refers to errors in sos_err error class (services errors)
  • ::SDBError() in opai - refers to errors in sdb_err error class (database errors)
  • ::OGUIError() in igui - refers to errors in ogui_err error class (GUI framework errors)
  • ::CTXError() in opai - refers to errors in p_err error class (application errors)
  • ::P_Error() in opai - refers to errors in p_err error class (application errors)

In order to set or check errors or for obtaining message texts from error values, appropriate Error class functions might be called with these error functions. Within an application, only context and project errors should be set.

Notes:

Error functions are not part of the common odaba and odabagui interface classes.