batchlas::api_misuse Class Reference

Overview

A well-formed call arrived in a state, order or thread where it is not valid.

A Queue used from a thread other than its owner, attach_to_current_thread() with a workspace lease outstanding, configure() after a Queue already exists, a BumpAllocator query asked of the wrong kind of pool (required_bytes() of a real pool, remaining() of a sizing one).

Not retryable as-is: reorder the calls or confine the object to one thread. Distinct from invalid_argument because no argument is wrong.

Definition at line 200 of file error.hh.

#include <batchlas/error.hh>

Inheritance diagram for batchlas::api_misuse:

Constructors

◆ api_misuse() [1/2]

batchlas::api_misuse::api_misuse ( const std::string & what_arg)
inlineexplicit

Definition at line 202 of file error.hh.

◆ api_misuse() [2/2]

batchlas::api_misuse::api_misuse ( const char * what_arg)
inlineexplicit

Definition at line 203 of file error.hh.