ObjectBox C and C++ API  4.0.3
obx::IllegalStateException Class Reference

Thrown when a request does not make sense in the current state. For example, doing actions on a closed object. More...

#include <objectbox.hpp>

Inheritance diagram for obx::IllegalStateException:
Inheritance graph

Public Member Functions

int code () const override
 Always OBX_ERROR_ILLEGAL_STATE. More...
 

Detailed Description

Thrown when a request does not make sense in the current state. For example, doing actions on a closed object.

Member Function Documentation

◆ code()

int obx::IllegalStateException::code ( ) const
inlineoverridevirtual

Always OBX_ERROR_ILLEGAL_STATE.

Implements obx::Exception.

Reimplemented in obx::ShuttingDownException.