MCPcopy Index your code
hub / github.com/RustPython/RustPython / name_from_errcode

Function name_from_errcode

crates/stdlib/src/_sqlite3.rs:3481–3488  ·  view source on GitHub ↗
(errcode: c_int)

Source from the content-addressed store, hash-verified

3479 }
3480
3481 fn name_from_errcode(errcode: c_int) -> &'static str {
3482 for (name, code) in ERROR_CODES {
3483 if *code == errcode {
3484 return name;
3485 }
3486 }
3487 "unknown error code"
3488 }
3489
3490 fn raise_exception(
3491 typ: PyTypeRef,

Callers 1

raise_exceptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected