core-adapters 0.1.2
Third-party adapters for snicholls-core: nanobind helpers, nlohmann/json hooks, the snicholls_core Python package
Loading...
Searching...
No Matches
snicholls::python::precondition_error Class Reference

A violated precondition of a bound function: snicholls_core.errors.PreconditionError (a ValueError). More...

#include <snicholls/core_adapters/nanobind/errors.hpp>

Inheritance diagram for snicholls::python::precondition_error:

Public Member Functions

 precondition_error (const std::string &what)
 Constructs it.
 

Detailed Description

A violated precondition of a bound function: snicholls_core.errors.PreconditionError (a ValueError).

Core asserts its preconditions; a binding checks them first with require, because Python callers pass anything.

Definition at line 89 of file errors.hpp.

Constructor & Destructor Documentation

◆ precondition_error()

snicholls::python::precondition_error::precondition_error ( const std::string &  what)
inlineexplicit

Constructs it.

Parameters
whatthe message.

Definition at line 93 of file errors.hpp.


The documentation for this class was generated from the following file: