[ 
https://issues.apache.org/jira/browse/PROTON-1095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15116174#comment-15116174
 ] 

ASF subversion and git services commented on PROTON-1095:
---------------------------------------------------------

Commit 68369ac4448a88c07cfca767aebb28ab86c1360a in qpid-proton's branch 
refs/heads/master from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=68369ac ]

PROTON-1095: [C++ binding] Improve error handling with events
- Introduce on_unhandled_error that is called if the application does
  not handle the specific error conditions itself.
-- Default action of on_unhandled_erro is to raise an exception with a
   useful message.
- Added condition to represent error state (wrapper for pn_condition_t)
x Examples now don't seem robust enough and fail because of errors


> Error handling
> --------------
>
>                 Key: PROTON-1095
>                 URL: https://issues.apache.org/jira/browse/PROTON-1095
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: cpp-binding
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>
> The C++ binding needs a disciplined and effective way to handle protocol (and 
> transport) errors.
> Currently the API has some error events, however if they are not handled the 
> program will just hang - it would be better in this case to throw an 
> exception so that the program doesn't just hang.
> Another issue is creating error states (attaching a condition) when closing a 
> connection/session/link - there should be some straightforward way to 
> indicate the error to your peer.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to