Tag: Error
3 posts
-
C++23 std::expected: Returning Errors as Values, Monadic Chaining, and Access Pitfalls
How std::expected<T, E> carries a value or a typed error, when it beats exceptions, how and_then/transform/or_else chain, and the UB and conversion traps.
-
Reading CMake Errors by Phase: Compiler Detection, find_package, Missing Targets, Link Failures and Stale Caches
Real CMake errors decoded by phase: No CMAKE_CXX_COMPILER could be found, missing package config, Cannot find source file, undefined references, stale caches.
-
JavaScript Error Handling: try/catch/finally, Custom Errors, Rejected Promises and Retries
Handle JavaScript errors with try/catch/finally, built-in and custom Error classes, rejected promises and async/await, retry with backoff and Result wrappers.