Lodestone.Core
Loading...
Searching...
No Matches
LibraryException.h
Go to the documentation of this file.
1
8#ifndef LODESTONE_LIBRARYEXCEPTION_H
9#define LODESTONE_LIBRARYEXCEPTION_H
10#include <filesystem>
11
13 class LibraryException : public std::system_error {
14 public:
15 LibraryException(const std::string &message, const std::filesystem::path &libraryPath, const std::error_code &errorCode);
16
17 const std::filesystem::path &path() const noexcept {
18 return this->m_libraryPath;
19 }
20
21 private:
22 const std::filesystem::path m_libraryPath;
23 };
24}
25
26#endif // LODESTONE_LIBRARYEXCEPTION_H
LibraryException(const std::string &message, const std::filesystem::path &libraryPath, const std::error_code &errorCode)
Definition LibraryException.cpp:11
const std::filesystem::path m_libraryPath
Definition LibraryException.h:22
const std::filesystem::path & path() const noexcept
Definition LibraryException.h:17
Definition LibraryException.cpp:10