ORM C++
Loading...
Searching...
No Matches
orm::migrations::MigrationError Class Referencefinalexport
module orm
Inheritance diagram for orm::migrations::MigrationError:
Collaboration diagram for orm::migrations::MigrationError:

Public Member Functions

 MigrationError (ErrorCode code, std::string message, Version version=0, db::BackendType backend=db::BackendType::Empty, std::optional< std::string > nativeCode=std::nullopt)
auto getCode () const noexcept -> ErrorCode
auto getVersion () const noexcept -> Version
auto getBackendType () const noexcept -> db::BackendType
auto getNativeCode () const noexcept -> const std::optional< std::string > &

Detailed Description

Definition at line 55 of file migrations.cppm.

Constructor & Destructor Documentation

◆ MigrationError()

orm::migrations::MigrationError::MigrationError ( ErrorCode code,
std::string message,
Version version = 0,
db::BackendType backend = db::BackendType::Empty,
std::optional< std::string > nativeCode = std::nullopt )

Member Function Documentation

◆ getBackendType()

auto orm::migrations::MigrationError::getBackendType ( ) const -> db::BackendType
nodiscardnoexcept

◆ getCode()

auto orm::migrations::MigrationError::getCode ( ) const -> ErrorCode
nodiscardnoexcept

◆ getNativeCode()

auto orm::migrations::MigrationError::getNativeCode ( ) const -> const std::optional< std::string > &
nodiscardnoexcept

◆ getVersion()

auto orm::migrations::MigrationError::getVersion ( ) const -> Version
nodiscardnoexcept

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