OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_error Struct Reference

#include <occtl_core.h>

Collaboration diagram for occtl_error:

Public Attributes

occtl_status_t status
 
const char * message
 
occtl_uid_t source
 
uint32_t extended
 

Detailed Description

Thread-local description of the most recent failure.

Populated automatically when any public function returns a non-OK status. Read it with occtl_error_last; clear it with occtl_error_clear.

The message pointer is library-owned and is only valid until the next OCCT-Light call on this thread. Copy it out if you need to retain it.

Member Data Documentation

◆ extended

uint32_t occtl_error::extended

Optional SQLite-style extended subcode.

◆ message

const char* occtl_error::message

UTF-8, library-owned, see lifetime note above.

◆ source

occtl_uid_t occtl_error::source

UID of the offending entity, or all-zeros if not applicable.

◆ status

occtl_status_t occtl_error::status

Primary status code.


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