CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
core_error.h File Reference

Central error handling system for CaptureMoment Core library. More...

#include <string_view>
#include <cstdint>
#include <format>
#include <fmt/core.h>
+ Include dependency graph for core_error.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::formatter< CaptureMoment::Core::ErrorHandling::CoreError >
 std::formatter specialization for CoreError. More...
 
struct  fmt::formatter< CaptureMoment::Core::ErrorHandling::CoreError >
 fmt::formatter specialization for CoreError. More...
 

Namespaces

namespace  CaptureMoment
 
namespace  CaptureMoment::Core
 Manages the lifecycle of a single IWorkingImage instance.
 
namespace  ErrorHandling
 Contains the error handling infrastructure for the Core library.
 
namespace  CaptureMoment::Core::ErrorHandling
 

Enumerations

enum class  CaptureMoment::Core::ErrorHandling::CoreError : uint8_t {
  CaptureMoment::Core::ErrorHandling::Success = 0 , CaptureMoment::Core::ErrorHandling::InvalidImageRegion = 1 , CaptureMoment::Core::ErrorHandling::AllocationFailed = 2 , CaptureMoment::Core::ErrorHandling::InvalidHalideBuffer = 3 ,
  CaptureMoment::Core::ErrorHandling::InvalidWorkingImage = 4 , CaptureMoment::Core::ErrorHandling::IOError = 5 , CaptureMoment::Core::ErrorHandling::FileNotFound = 6 , CaptureMoment::Core::ErrorHandling::UnsupportedFormat = 7 ,
  CaptureMoment::Core::ErrorHandling::DecodingError = 8 , CaptureMoment::Core::ErrorHandling::SourceNotLoaded = 9 , CaptureMoment::Core::ErrorHandling::Unexpected = 99
}
 Enumeration of all error codes for CaptureMoment Core. More...
 
enum class  CaptureMoment::Core::ErrorHandling::CoreErrorCategory : uint8_t {
  CaptureMoment::Core::ErrorHandling::System = 0 , CaptureMoment::Core::ErrorHandling::ImageProcessing = 1 , CaptureMoment::Core::ErrorHandling::Serialization = 2 , CaptureMoment::Core::ErrorHandling::Common = 3 ,
  CaptureMoment::Core::ErrorHandling::Source = 4
}
 Enumeration of high-level error categories. More...
 

Functions

constexpr CoreErrorCategory CaptureMoment::Core::ErrorHandling::get_error_category (CoreError code)
 Converts a CoreError code to its high-level Category.
 
constexpr std::string_view CaptureMoment::Core::ErrorHandling::to_string (CoreError code)
 Converts a CoreError code to a human-readable string.
 
constexpr std::string_view CaptureMoment::Core::ErrorHandling::to_string (CoreErrorCategory category)
 Converts a CoreErrorCategory to a human-readable string.
 

Detailed Description

Central error handling system for CaptureMoment Core library.

Defines error codes and categories using memory-efficient enums. This module provides the types used for std::expected return values throughout the library.

Definition in file core_error.h.

CaptureMoment — footer