nrtb-core team mailing list archive
-
nrtb-core team
-
Mailing list archive
-
Message #00139
[Bug 725095] Re: Todo: Clean up overly complex exception definition in dbAccess.h
Fixes and adjustments made in version 38.
** Changed in: nrtb
Status: New => Fix Committed
--
You received this bug notification because you are a member of NRTB
Core, which is subscribed to New Real Time Battle.
https://bugs.launchpad.net/bugs/725095
Title:
Todo: Clean up overly complex exception definition in dbAccess.h
Status in The New Real Time Battle Project:
Fix Committed
Bug description:
As a general rule, exceptions inherited from nrtb::base_exception do
not need to have anything overidden when they are declared/defined.
For example, the following would be fine in a class header:
public:
// Thrown by my_method() in cases of unexpected error.
class my_method_exception: public nrtb::base_exception {};
This is cleaner and easier to read than the exception class
declarations currently present in dbAccess.
References