Source-highlight Library
ioexception.h
1//
2// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008
3//
4// Copyright: See COPYING file that comes with this distribution
5//
6
7#ifndef IOEXCEPTION_H_
8#define IOEXCEPTION_H_
9
10#include <ostream>
11#include <exception>
12#include <string>
13
14namespace srchilite {
15
19struct IOException : public std::exception {
21 std::string message;
22
24 std::string filename;
25
26 IOException(const std::string &_message,
27 const std::string &_filename);
28 virtual ~IOException() throw() ;
29
30 virtual const char* what ( ) const throw ();
31};
32
33std::ostream& operator<<(std::ostream& os, const IOException &entry);
34
35}
36
37#endif /*IOEXCEPTION_H_*/
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
Exception representing an error in an input/output operation.
Definition: ioexception.h:19
std::string message
detailed message for this exception
Definition: ioexception.h:21
std::string filename
filename of the element that caused this exception
Definition: ioexception.h:24