Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::ResultProcess Struct Reference

Process result retaining optional backend and native platform details. More...

#include <ProcessError.h>

Public Member Functions

constexpr ResultProcess (bool valid=true)
 
constexpr ResultProcess (ProcessError error, ProcessErrorDetail detail=ProcessErrorDetail::None, uint32_t nativeError=0)
 
constexpr ResultProcess (Result result)
 
template<typename ResultLike >
constexpr ResultProcess (const ResultLike &other)
 
constexpr operator bool () const
 
constexpr operator Result () const
 
constexpr Result toResult () const
 
constexpr bool isError (ProcessError error) const
 

Public Attributes

Result result
 
ProcessErrorDetail detail = ProcessErrorDetail::None
 
uint32_t nativeError = 0
 

Detailed Description

Process result retaining optional backend and native platform details.

detail and nativeError are zero when unavailable or irrelevant. Converting to Result preserves the portable error identity and deliberately discards both diagnostic details.


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