Lightweight 0.20261031.0
Loading...
Searching...
No Matches
Lightweight::SqlMigration::UnicodeUpgradeUnitError Class Referencefinal

#include <SqlMigration.hpp>

Inherits Lightweight::SqlException.

Public Member Functions

 UnicodeUpgradeUnitError (SqlErrorInfo info, std::size_t unitNumber, std::size_t unitCount)
 
std::size_t UnitNumber () const noexcept
 The failed unit, counted from 1; the units before it are committed.
 
std::size_t UnitCount () const noexcept
 The number of units of the upgrade.
 

Detailed Description

The failure of one unit of MigrationManager::UnicodeUpgradeTables, which was rolled back.

info() keeps the SQLSTATE and native error code of the cause; its message names the unit, its tables and what the units before it committed, followed by the cause's message.

Definition at line 351 of file SqlMigration.hpp.

Constructor & Destructor Documentation

◆ UnicodeUpgradeUnitError()

Lightweight::SqlMigration::UnicodeUpgradeUnitError::UnicodeUpgradeUnitError ( SqlErrorInfo  info,
std::size_t  unitNumber,
std::size_t  unitCount 
)
inline
Parameters
infoThe cause's error info, its message already prefixed with the unit's.
unitNumberThe failed unit, counted from 1.
unitCountThe number of units of the upgrade.

Definition at line 357 of file SqlMigration.hpp.

Member Function Documentation

◆ UnitNumber()

std::size_t Lightweight::SqlMigration::UnicodeUpgradeUnitError::UnitNumber ( ) const
inlinenoexcept

The failed unit, counted from 1; the units before it are committed.

Definition at line 365 of file SqlMigration.hpp.

◆ UnitCount()

std::size_t Lightweight::SqlMigration::UnicodeUpgradeUnitError::UnitCount ( ) const
inlinenoexcept

The number of units of the upgrade.

Definition at line 371 of file SqlMigration.hpp.


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