Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
rw_exception.h
Go to the documentation of this file.
1
29#ifndef RW_EXCEPTION_H_INCLUDED
30#define RW_EXCEPTION_H_INCLUDED
31
32#include <rw_testdefs.h>
33
35{
37 // custom exceptions, i.e. not derived for std::exception
40 // exceptions derived from std::exception
42 ex_std = (7 << 3)
43};
44
45
47{
49
50 Exception (ExceptionId id) : id_ (id) {}
51
52 virtual ~Exception ();
53
54 virtual const char* what () const = 0;
55};
56
57
58_TEST_EXPORT void
59rw_throw (ExceptionId exid, const char *file, int line,
60 const char *function, const char *fmt, ...);
61
62#endif // RW_EXCEPTION_H_INCLUDED
#define line
Definition 17.names.cpp:490
_TEST_EXPORT void rw_throw(ExceptionId exid, const char *file, int line, const char *function, const char *fmt,...)
ExceptionId
@ ex_stream
@ ex_unknown
@ ex_custom
@ ex_std
@ ex_bad_alloc
#define _TEST_EXPORT
Definition rw_testdefs.h:55
Exception(ExceptionId id)
const ExceptionId id_
virtual const char * what() const =0