mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-02-04 03:56:11 -06:00
Move exception to header
Otherwise, it obviously can't be caught by users of the ElfFile class.
This commit is contained in:
parent
c6f760c343
commit
030b21379b
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user