Skip to content

StateError

Raised when an operation is invalid for the current object or runtime state, such as using a closed handle or stale reference.

Inherits from: RuntimeError

Constructor

StateError message

Builds an error reporting an operation attempted in the wrong state.

Parameters

NameTypeDescription
message Str description of the invalid state