TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
Loading...
Searching...
No Matches
tec::Error Struct Reference

Defines error types and codes for error handling in the tec library. More...

#include <tec_status.hpp>

Classes

struct  Code
 Defines error codes with a default unspecified value. More...
 

Public Types

enum class  Kind : int {
  Ok , Err , IOErr , RuntimeErr ,
  NetErr , RpcErr , TimeoutErr , Invalid ,
  System , NotImplemented , Unsupported
}
 Enumerates possible error categories. More...
 

Detailed Description

Defines error types and codes for error handling in the tec library.

Provides an enumeration of error kinds and a templated structure for error codes.

Member Enumeration Documentation

◆ Kind

Enumerates possible error categories.

Defines a set of error kinds used to categorize errors in the tec library.

Enumerator
Ok 

Indicates successful execution.

Err 

Generic error.

IOErr 

Input/output operation failure.

RuntimeErr 

Runtime error during execution.

NetErr 

Network-related error.

RpcErr 

Remote procedure call error.

TimeoutErr 

Timeout during an operation.

Invalid 

Invalid data or state.

System 

System-level error.

NotImplemented 

Not implemented.

Unsupported 

The feature is unsupported.


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