wisdom
Loading...
Searching...
No Matches
wis::Result Struct Reference

Detailed Description

Main source of communication of operation success. To check for success compare wis::Result::status with wis::Status::Ok. If there is any error there is string which is compile-time. It communicates the source of problems even in Release mode. The string contains function name and error message.

struct Result {
const char* error = nullptr;
};
Status
Represents main error communication source for the API. Compare against wis::Status::Ok for success.
Definition api.hpp:94
@ Ok
Operation succeded.
Main source of communication of operation success. To check for success compare wis::Result::status w...
Definition api.hpp:1534

Definition at line 1534 of file api.hpp.

#include <api.hpp>

Public Attributes

wis::Status status = wis::Status::Ok
 Operation status. Compare with wis::Status::Ok.
 
const char * error = nullptr
 Error message. nullptr or 'Operation Succeeded.' if no error.
 

Data Members

◆ error

const char* wis::Result::error = nullptr

Error message. nullptr or 'Operation Succeeded.' if no error.

Definition at line 1536 of file api.hpp.

◆ status

wis::Status wis::Result::status = wis::Status::Ok

Operation status. Compare with wis::Status::Ok.

Definition at line 1535 of file api.hpp.


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