batchlas::invalid_argument Class Reference

Overview

The call violates the API contract.

Thrown for a non-square view where a square one is required, mismatched batch sizes, a span too short for the batch, a negative dimension, a null or non-USM pointer, an out-of-order Queue where an in-order one is required, or an enum value with no meaning here.

Not retryable: fix the call. Derives from std::invalid_argument, which pybind11 maps to Python's ValueError.

Definition at line 77 of file error.hh.

#include <batchlas/error.hh>

Inheritance diagram for batchlas::invalid_argument:

Constructors

◆ invalid_argument() [1/2]

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

Definition at line 79 of file error.hh.

◆ invalid_argument() [2/2]

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

Definition at line 81 of file error.hh.