KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
incorrectdexfile_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 incorrectdexfile_exception.hpp
6#ifndef KUNAI_EXCEPTIONS_INCORRECTDEXFILE_EXCEPTION_HPP
7#define KUNAI_EXCEPTIONS_INCORRECTDEXFILE_EXCEPTION_HPP
8
9#include <iostream>
10
11namespace exceptions
12{
15 class IncorrectDexFileException : public std::exception
16 {
18 std::string _msg;
19
20 public:
21
24 IncorrectDexFileException(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 // KUNAI_EXCEPTIONS_INCORRECTDEXFILE_EXCEPTION_HPP
Exception raised when found an incorrect dex file during the analysis.
Definition incorrectdexfile_exception.hpp:16
IncorrectDexFileException(const std::string &msg)
Constructor of exception.
Definition incorrectdexfile_exception.hpp:24
virtual const char * what() const noexcept override
Return error message.
Definition incorrectdexfile_exception.hpp:29