212 default:
return "Unknown";
232 default:
return "Unknown";
245struct std::formatter<
CaptureMoment::Core::ErrorHandling::CoreError> : std::formatter<std::string_view>
247 template <
typename FormatContext>
250 return std::formatter<std::string_view>::format(
266 template <
typename ParseContext>
267 constexpr auto parse(ParseContext& ctx) {
271 template <
typename FormatContext>
274 auto out = ctx.out();
275 for (
const char c : sv) {
constexpr std::string_view to_string(CoreError code)
Converts a CoreError code to a human-readable string.
CoreErrorCategory
Enumeration of high-level error categories.
@ Serialization
Errors related to Serialization, File I/O, or Network.
@ System
General system or unknown errors.
@ Common
General errors applicable to multiple subsystems.
@ ImageProcessing
Errors related to Image Processing, GPU, or Memory.
@ Source
Specific to SourceManager, file loading, and caching.
CoreError
Enumeration of all error codes for CaptureMoment Core.
@ InvalidImageRegion
The provided ImageRegion dimensions or data are invalid.
@ FileNotFound
The specified file path does not exist.
@ DecodingError
Failed to decode the image data.
@ Success
Operation completed successfully.
@ IOError
Generic File I/O error.
@ SourceNotLoaded
Attempted to access image data without loading a file first.
@ InvalidWorkingImage
The working image state is invalid or corrupted.
@ AllocationFailed
Memory allocation failed.
@ Unexpected
An unexpected error occurred.
@ UnsupportedFormat
The file format is not supported by OIIO or the system.
@ InvalidHalideBuffer
Halide buffer is invalid or undefined.
constexpr CoreErrorCategory get_error_category(CoreError code)
Converts a CoreError code to its high-level Category.
Manages the lifecycle of a single IWorkingImage instance.
Contains the error handling infrastructure for the Core library.