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