xref: /haiku/src/tests/misc/exception-test/exceptions.cpp (revision 93aeb8c3bc3f13cb1f282e3e749258a23790d947)
1 
2 #include "exceptions.h"
3 
ExceptionBase()4 ExceptionBase::ExceptionBase()	{}
~ExceptionBase()5 ExceptionBase::~ExceptionBase()	{}
6 
ExceptionA()7 ExceptionA::ExceptionA()	{}
~ExceptionA()8 ExceptionA::~ExceptionA()	{}
9 
ExceptionB()10 ExceptionB::ExceptionB()	{}
~ExceptionB()11 ExceptionB::~ExceptionB()	{}
12 
VirtualExceptionBase()13 VirtualExceptionBase::VirtualExceptionBase()	{}
~VirtualExceptionBase()14 VirtualExceptionBase::~VirtualExceptionBase()	{}
15 
VirtualExceptionA()16 VirtualExceptionA::VirtualExceptionA()	{}
~VirtualExceptionA()17 VirtualExceptionA::~VirtualExceptionA()	{}
18 
VirtualExceptionB()19 VirtualExceptionB::VirtualExceptionB()	{}
~VirtualExceptionB()20 VirtualExceptionB::~VirtualExceptionB()	{}
21 
throwBase()22 void throwBase()		{ throw ExceptionBase(); }
throwA()23 void throwA()			{ throw ExceptionA(); }
throwB()24 void throwB()			{ throw ExceptionB(); }
throwVirtualBase()25 void throwVirtualBase()	{ throw VirtualExceptionBase(); }
throwVirtualA()26 void throwVirtualA()	{ throw VirtualExceptionA(); }
throwVirtualB()27 void throwVirtualB()	{ throw VirtualExceptionB(); }
throwInt()28 void throwInt()			{ throw int(7); }
29