OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl::Error Class Reference

Exception thrown by the veneer on any non-OK status code. More...

#include <core.hpp>

Inheritance diagram for occtl::Error:
Collaboration diagram for occtl::Error:

Public Member Functions

 Error (const ::occtl_status_t theCode, std::string theMessage, const std::uint64_t theSourceUidBits, const std::uint32_t theExtended) noexcept
 
::occtl_status_t code () const noexcept
 
std::uint64_t source_uid_bits () const noexcept
 
std::uint32_t extended () const noexcept
 

Static Public Member Functions

static Error from_last (const ::occtl_status_t theFallback) noexcept
 Build from the current thread-local error state.
 

Detailed Description

Exception thrown by the veneer on any non-OK status code.

Carries everything occtl_error_t carries: status, UTF-8 message, optional source UID, optional extended subcode. The message is copied into the exception so it survives subsequent OCCT-Light calls.


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