KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
parser_exception.hpp
1//--------------------------------------------------------------------*- C++ -*-
2// Kunai-static-analyzer: library for doing analysis of dalvik files
3// @author Farenain <kunai.static.analysis@gmail.com>
4// @author Ernesto Java <javaernesto@gmail.com>
5//
6// @file parser_exception.hpp
7#ifndef KUNAI_EXCEPTIONS_PARSER_EXCEPTION_HPP
8#define KUNAI_EXCEPTIONS_PARSER_EXCEPTION_HPP
9
10#include <iostream>
11
12namespace exceptions
13{
15 class ParserException : public std::exception
16 {
18 std::string _msg;
19
20 public:
21
24 ParserException(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
37
38#endif // KUNAI_EXCEPTIONS_PARSER_EXCEPTION_HPP
Exception raised when parsing process fails.
Definition parser_exception.hpp:16
ParserException(const std::string &msg)
Constructor of exception.
Definition parser_exception.hpp:24
virtual const char * what() const noexcept override
Return error message.
Definition parser_exception.hpp:29