nkr
A C++20 library with a custom meta-programming language.
nkr::error Namespace Reference

Error types provide an abstraction over enumerations representing runtime recoverable errors. More...

Detailed Description

Error types provide an abstraction over enumerations representing runtime recoverable errors.

nkr makes use of various error types where both a runtime problem can occur and it is desirable for your program to be able to recover from it, e.g. running out of main memory. For the most part they inherit from nkr::enumeration::errors_t. Error types do not represent a frivolous problem-set of programmer errors, most of which can be detailed to the developer by other more efficient means, usually during compile time. Error types do represent problems that can occur during runtime, such as dynamically registering a user-error for further processing.