25 lines
496 B
C++
25 lines
496 B
C++
#include "elna/source/result.hpp"
|
|
|
|
namespace elna::source
|
|
{
|
|
error::error(const std::filesystem::path& path, const position position)
|
|
: m_position(position), m_path(path)
|
|
{
|
|
}
|
|
|
|
std::size_t error::line() const noexcept
|
|
{
|
|
return this->m_position.line;
|
|
}
|
|
|
|
std::size_t error::column() const noexcept
|
|
{
|
|
return this->m_position.column;
|
|
}
|
|
|
|
const std::filesystem::path& error::path() const noexcept
|
|
{
|
|
return this->m_path;
|
|
}
|
|
}
|