diff options
| author | masoud bh | 2015-09-24 02:39:26 +0330 |
|---|---|---|
| committer | masoud bh | 2015-11-09 02:24:01 +0330 |
| commit | 55b8c3ee48b690e0b801351ef0819b08b038b9d6 (patch) | |
| tree | 13f568280f85e63b862540dcd069a46107161118 /tools/pe_bliss/pe_exception.cpp | |
| parent | 24f3f43457ac6bdeed95c1ed0a882387a509078a (diff) | |
| download | godot-55b8c3ee48b690e0b801351ef0819b08b038b9d6.tar.gz godot-55b8c3ee48b690e0b801351ef0819b08b038b9d6.tar.zst godot-55b8c3ee48b690e0b801351ef0819b08b038b9d6.zip | |
Diffstat (limited to 'tools/pe_bliss/pe_exception.cpp')
| -rw-r--r-- | tools/pe_bliss/pe_exception.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/pe_bliss/pe_exception.cpp b/tools/pe_bliss/pe_exception.cpp new file mode 100644 index 000000000..eb76f28a3 --- /dev/null +++ b/tools/pe_bliss/pe_exception.cpp @@ -0,0 +1,19 @@ +#include "pe_exception.h" + +namespace pe_bliss +{ +//PE exception class constructors +pe_exception::pe_exception(const char* text, exception_id id) + :std::runtime_error(text), id_(id) +{} + +pe_exception::pe_exception(const std::string& text, exception_id id) + :std::runtime_error(text), id_(id) +{} + +//Returns exception ID +pe_exception::exception_id pe_exception::get_id() const +{ + return id_; +} +} |
