relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::migrations::MigrationError Struct Reference

Error information for migration operations. More...

#include <relx/migrations/core.hpp>

Public Member Functions

std::string format () const
 Get a formatted error message.
 

Static Public Member Functions

static MigrationError make (MigrationErrorType type, const std::string &message, const std::string &context="")
 Create a MigrationError with automatic formatting.
 

Public Attributes

MigrationErrorType type
 
std::string message
 
std::string context
 Additional context (table name, column name, etc.)
 

Detailed Description

Error information for migration operations.

Definition at line 31 of file core.hpp.

Member Function Documentation

◆ format()

std::string relx::migrations::MigrationError::format ( ) const
inline

Get a formatted error message.

Definition at line 43 of file core.hpp.

◆ make()

static MigrationError relx::migrations::MigrationError::make ( MigrationErrorType  type,
const std::string &  message,
const std::string &  context = "" 
)
inlinestatic

Create a MigrationError with automatic formatting.

Definition at line 37 of file core.hpp.

Member Data Documentation

◆ context

std::string relx::migrations::MigrationError::context

Additional context (table name, column name, etc.)

Definition at line 34 of file core.hpp.

◆ message

std::string relx::migrations::MigrationError::message

Definition at line 33 of file core.hpp.

◆ type

MigrationErrorType relx::migrations::MigrationError::type

Definition at line 32 of file core.hpp.


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