driplineorg / dripline-cpp

C++ Implementation of the Dripline framework
http://driplineorg.github.io
Apache License 2.0
1 stars 0 forks source link

Derived exception classes to identify sources of exceptions #70

Open nsoblath opened 3 years ago

nsoblath commented 3 years ago

A class service_error that derives from dripline_error could take the service name as an argument to the constructor, and it could be automatically placed in the what() text.

Something similar could be done for endpoints, perhaps taking both the parent service name and the endpoint name.