diff options
| author | Glenn Smith <glenn@vector35.com> | 2023-08-17 17:24:21 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2023-08-25 14:26:59 -0400 |
| commit | 5046073446456512359493848692557442235294 (patch) | |
| tree | ec593ee29d4ca011745df55d21c4498695f93fd2 /mediumlevelilinstruction.h | |
| parent | c618591f29b35017802fef7a5209fd3b9dbfac30 (diff) | |
Make the IL exceptions include stack traces
Diffstat (limited to 'mediumlevelilinstruction.h')
| -rw-r--r-- | mediumlevelilinstruction.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mediumlevelilinstruction.h b/mediumlevelilinstruction.h index 90d2700c..bcac516b 100644 --- a/mediumlevelilinstruction.h +++ b/mediumlevelilinstruction.h @@ -205,11 +205,10 @@ namespace BinaryNinja /*! \ingroup mediumlevelil */ - class MediumLevelILInstructionAccessException : public std::exception + class MediumLevelILInstructionAccessException : public ExceptionWithStackTrace { public: - MediumLevelILInstructionAccessException() : std::exception() {} - virtual const char* what() const NOEXCEPT { return "invalid access to MLIL instruction"; } + MediumLevelILInstructionAccessException() : ExceptionWithStackTrace("invalid access to MLIL instruction") {} }; /*! |
