Move exception to header

Otherwise, it obviously can't be caught by users of the ElfFile class.
This commit is contained in:
TheAssassin 2018-06-04 14:08:24 +02:00
parent c6f760c343
commit 030b21379b
2 changed files with 6 additions and 6 deletions

View File

@ -10,6 +10,12 @@
namespace linuxdeploy {
namespace core {
namespace elf {
// thrown by constructor if file is not an ELF file
class ElfFileParseError : public std::runtime_error {
public:
explicit ElfFileParseError(const std::string& msg) : std::runtime_error(msg) {}
};
class ElfFile {
private:
class PrivateData;

View File

@ -17,12 +17,6 @@ namespace bf = boost::filesystem;
namespace linuxdeploy {
namespace core {
namespace elf {
// thrown by constructor if file is not an ELF file
class ElfFileParseError : public std::runtime_error {
public:
explicit ElfFileParseError(const std::string& msg) : std::runtime_error(msg) {}
};
class ElfFile::PrivateData {
public:
const bf::path path;