KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
analysis_exception.hpp
1//--------------------------------------------------------------------*- C++ -*-
2// Kunai-static-analyzer: library for doing analysis of dalvik files
3// @author Farenain <kunai.static.analysis@gmail.com>
4//
5// @file analysis_exception.hpp
6
7#ifndef KUNAI_EXCEPTIONS_ANALYSIS_EXCEPTION_HPP
8#define KUNAI_EXCEPTIONS_ANALYSIS_EXCEPTION_HPP
9
10#include <iostream>
11
12namespace exceptions
13{
15 class AnalysisException : public std::exception
16 {
18 std::string _msg;
19
20 public:
21
24 AnalysisException(const std::string &msg) : _msg(msg)
25 {}
26
29 virtual const char* what() const noexcept override
30 {
31 return _msg.c_str();
32 }
33 };
34} // namespace exceptions
35
36#endif
Exception raised in the analysis of dalvik.
Definition analysis_exception.hpp:16
AnalysisException(const std::string &msg)
Constructor of exception.
Definition analysis_exception.hpp:24
virtual const char * what() const noexcept override
Return error message.
Definition analysis_exception.hpp:29