Steganography
A C++ Steganography tool which leverages the LSB and DCT embedding techniques
exceptions.hpp
1 /* This file is a part of "Steganography" a C++ steganography tool.
2 
3 Copyright (C) 2019 James Lee <jamesl33info@gmail.com>.
4 
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17 
18 #include <stdexcept>
19 
20 #ifndef EXCEPTIONS_HPP
21 #define EXCEPTIONS_HPP
22 
23 class ImageException : public std::runtime_error
24 {
25  public:
31  explicit ImageException(const std::string &message) : std::runtime_error(message) {};
32 };
33 
34 class EncodeException : public std::runtime_error
35 {
36  public:
43  explicit EncodeException(const std::string &message) : std::runtime_error(message) {};
44 };
45 
46 class DecodeException : public std::runtime_error
47 {
48  public:
55  explicit DecodeException(const std::string &message) : std::runtime_error(message) {};
56 };
57 
58 #endif // EXCEPTIONS_HPP
Definition: exceptions.hpp:23
Definition: exceptions.hpp:46
EncodeException(const std::string &message)
Definition: exceptions.hpp:43
DecodeException(const std::string &message)
Definition: exceptions.hpp:55
Definition: exceptions.hpp:34
ImageException(const std::string &message)
Definition: exceptions.hpp:31