steghide 0.5.1
error.h
Go to the documentation of this file.
1/*
2 * steghide 0.5.1 - a steganography program
3 * Copyright (C) 1999-2003 Stefan Hetzl <shetzl@chello.at>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (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, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 */
20
21#ifndef SH_ERROR_H
22#define SH_ERROR_H
23
24#include <cstdio>
25#include <string>
26
27#include "SteghideError.h"
28
29class BinaryIO ;
30
31class ArgError : public SteghideError {
32 public:
33 ArgError (const char *msgfmt, ...) ;
34
35 void printMessage (void) const ;
36} ;
37
39 public:
41
42 BinaryInputError (std::string fn, FILE* s) ;
43
44 TYPE getType (void) ;
45
46 protected:
47 void setType (TYPE t) ;
48
49 private:
51} ;
52
54 public:
56
57 BinaryOutputError (std::string fn) ;
58
59 TYPE getType (void) ;
60
61 protected:
62 void setType (TYPE t) ;
63
64 private:
66} ;
67
69 public:
71} ;
72
74 public:
75 NotImplementedError (const char* msgfmt, ...) ;
76
77 void printMessage (void) const ;
78} ;
79
87 public:
88 CorruptDataError (const char* msgfmt, ...) ;
89
90 void printMessage (void) const ;
91} ;
92
93#endif
Definition error.h:31
void printMessage(void) const
Definition error.cc:42
provides methods for file i/o as needed by the rest of steghide
Definition BinaryIO.h:33
Definition error.h:38
void setType(TYPE t)
Definition error.cc:81
TYPE
Definition error.h:40
@ STDIN_ERR
Definition error.h:40
@ FILE_ERR
Definition error.h:40
@ STDIN_EOF
Definition error.h:40
@ FILE_EOF
Definition error.h:40
TYPE getType(void)
Definition error.cc:76
TYPE type
Definition error.h:50
Definition error.h:53
TYPE getType(void)
Definition error.cc:102
TYPE type
Definition error.h:65
TYPE
Definition error.h:55
@ STDOUT_ERR
Definition error.h:55
@ FILE_ERR
Definition error.h:55
void setType(TYPE t)
Definition error.cc:107
is thrown as exception when corrupt data is encountered during extraction
Definition error.h:86
void printMessage(void) const
Definition error.cc:158
Definition error.h:73
void printMessage(void) const
Definition error.cc:138
Definition SteghideError.h:28
Definition error.h:68