KUNAI Static Analyzer
Kunai is a library for doing static binary analysis of Dalvik.
Loading...
Searching...
No Matches
stream_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 stream_exception.hpp
6#ifndef KUNAI_EXCEPTIONS_STREAM_EXCEPTION_HPP
7#define KUNAI_EXCEPTIONS_STREAM_EXCEPTION_HPP
8
9#include <iostream>
10
11namespace exceptions
12{
14 class StreamException : public std::exception
15 {
17 std::string _msg;
18
19 public:
20
23 StreamException(const std::string &msg) : _msg(msg)
24 {}
25
28 virtual const char* what() const noexcept override
29 {
30 return _msg.c_str();
31 }
32 };
33} // namespace exceptions
34
35#endif
Exception raised in stream error.
Definition stream_exception.hpp:15
StreamException(const std::string &msg)
Constructor of exception.
Definition stream_exception.hpp:23
virtual const char * what() const noexcept override
Return error message.
Definition stream_exception.hpp:28