company logo

Handling ODABA exceptions

ODABA uses different kind of exceptions. The odaba and odabagui API always throw an exception (odaba::Exception), when the function could not be executed. Thus, try and catch might be used in order to catch exceptions thrown by database or GUI framework functions. In order to handle hardware exceptions, which typically result from accessing invalid memory location, ODABA turns hardware exceptions (signals) into C++ exceptions (::HardwareException), which might be caught by the application, too.

When hardware exceptions occur during executing a context class function, which usually happens within a database or GUI framework function, the calling function turns the HardwareException into an odaba::Exception.