Skip to main content

aip_sdk.InvalidStateError

aip_sdk.InvalidStateError

The requested operation is not valid for the object's current state.

Raised when an object is used outside its usable lifecycle — e.g. after it has been closed, or before the data the operation needs exists. Also a RuntimeError, so pre-existing except RuntimeError handlers keep working.