Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
tests
include
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
34
enum
ExceptionId
35
{
36
ex_unknown
= 0,
37
// custom exceptions, i.e. not derived for std::exception
38
ex_stream
= 1,
39
ex_custom
= 7,
40
// exceptions derived from std::exception
41
ex_bad_alloc
= 8,
42
ex_std
= (7 << 3)
43
};
44
45
46
struct
_TEST_EXPORT
Exception
47
{
48
const
ExceptionId
id_
;
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
59
rw_throw
(
ExceptionId
exid,
const
char
*file,
int
line
,
60
const
char
*function,
const
char
*fmt, ...);
61
62
#endif
// RW_EXCEPTION_H_INCLUDED
line
#define line
Definition
17.names.cpp:490
rw_throw
_TEST_EXPORT void rw_throw(ExceptionId exid, const char *file, int line, const char *function, const char *fmt,...)
Definition
exception.cpp:266
ExceptionId
ExceptionId
Definition
rw_exception.h:35
ex_stream
@ ex_stream
Definition
rw_exception.h:38
ex_unknown
@ ex_unknown
Definition
rw_exception.h:36
ex_custom
@ ex_custom
Definition
rw_exception.h:39
ex_std
@ ex_std
Definition
rw_exception.h:42
ex_bad_alloc
@ ex_bad_alloc
Definition
rw_exception.h:41
rw_testdefs.h
_TEST_EXPORT
#define _TEST_EXPORT
Definition
rw_testdefs.h:55
Exception
Definition
rw_exception.h:47
Exception::Exception
Exception(ExceptionId id)
Definition
rw_exception.h:50
Exception::id_
const ExceptionId id_
Definition
rw_exception.h:48
Exception::what
virtual const char * what() const =0
Generated by
1.9.8