ObjectBox C and C++ API  0.21.0
obx::Exception Class Referenceabstract

Base class for ObjectBox related exceptions. Note that there are currently 3 main sub types: IllegalArgumentException, IllegalStateException, and, for all other error types, DbException. More...

#include <objectbox.hpp>

Inheritance diagram for obx::Exception:
Inheritance graph

Public Member Functions

virtual int code () const =0
 The error code as defined in objectbox.h via the OBX_ERROR_* constants. More...
 

Detailed Description

Base class for ObjectBox related exceptions. Note that there are currently 3 main sub types: IllegalArgumentException, IllegalStateException, and, for all other error types, DbException.

Member Function Documentation

◆ code()

virtual int obx::Exception::code ( ) const
pure virtual