diff options
Diffstat (limited to 'src/lib/netlist/plib/palloc.h')
-rw-r--r-- | src/lib/netlist/plib/palloc.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/lib/netlist/plib/palloc.h b/src/lib/netlist/plib/palloc.h index a12595e0027..1f4a5b083d9 100644 --- a/src/lib/netlist/plib/palloc.h +++ b/src/lib/netlist/plib/palloc.h @@ -8,7 +8,6 @@ #ifndef PALLOC_H_ #define PALLOC_H_ -#include <exception> #include <vector> #include <memory> #include <utility> @@ -17,59 +16,6 @@ #include "pstring.h" namespace plib { -//============================================================ -// exception base -//============================================================ - -class pexception : public std::exception -{ -public: - pexception(const pstring text); - pexception(const pexception &e) : std::exception(e) { m_text = e.m_text; } - - virtual ~pexception() noexcept {} - - const pstring &text() { return m_text; } - -private: - pstring m_text; -}; - -class file_e : public plib::pexception -{ -public: - explicit file_e(const pstring fmt, const pstring &filename); -}; - -class file_open_e : public file_e -{ -public: - explicit file_open_e(const pstring &filename); -}; - -class file_read_e : public file_e -{ -public: - explicit file_read_e(const pstring &filename); -}; - -class file_write_e : public file_e -{ -public: - explicit file_write_e(const pstring &filename); -}; - -class null_argument_e : public plib::pexception -{ -public: - explicit null_argument_e(const pstring &argument); -}; - -class out_of_mem_e : public plib::pexception -{ -public: - explicit out_of_mem_e(const pstring &location); -}; //============================================================ // Memory allocation |