~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to lib/antlr/antlr/IOException.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef INC_IOException_hpp__
2
 
#define INC_IOException_hpp__
3
 
 
4
 
/* ANTLR Translator Generator
5
 
 * Project led by Terence Parr at http://www.jGuru.com
6
 
 * Software rights: http://www.antlr.org/license.html
7
 
 *
8
 
 * $Id: IOException.hpp 626096 2007-01-22 06:35:06Z okellogg $
9
 
 */
10
 
 
11
 
#include <antlr/config.hpp>
12
 
#include <antlr/ANTLRException.hpp>
13
 
#include <exception>
14
 
 
15
 
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
16
 
namespace antlr {
17
 
#endif
18
 
 
19
 
/** Generic IOException used inside support code. (thrown by XML I/O routs)
20
 
 * basically this is something I'm using since a lot of compilers don't
21
 
 * support ios_base::failure.
22
 
 */
23
 
class ANTLR_API IOException : public ANTLRException
24
 
{
25
 
public:
26
 
        ANTLR_USE_NAMESPACE(std)exception io;
27
 
 
28
 
        IOException( ANTLR_USE_NAMESPACE(std)exception& e )
29
 
                : ANTLRException(e.what())
30
 
        {
31
 
        }
32
 
        IOException( const ANTLR_USE_NAMESPACE(std)string& mesg )
33
 
                : ANTLRException(mesg)
34
 
        {
35
 
        }
36
 
        virtual ~IOException() throw()
37
 
        {
38
 
        }
39
 
};
40
 
 
41
 
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
42
 
}
43
 
#endif
44
 
 
45
 
#endif //INC_IOException_hpp__