Closed ecorm closed 9 years ago
The library already processes wamp::Error
objects thrown from within with RPC handlers. wamp::Error
objects can be constructed with any custom reason URI. Users can already establish exception hierarchies under wamp::Error
if they wish. I'll be adding a virtual destructor to wamp::Error
for this purpose.
This feature will therefore not be implemented.
Provide an exception base class that allows for easy conversion to ERROR messages. For example:
Whenever CppWAMP catches a
WithUri
exception thrown from an RPC, it automatically returns an ERROR message withBadMojo::uri()
as the URI and with thewhat()
message as a payload argument.