Docs: Expand example HTTP Client code to show proper error handling structure #194

Closed
kevin-- opened this Issue Jan 22, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@kevin--

kevin-- commented Jan 22, 2013

I just wrapped the standard example code in a try {} catch {} and was faced with a crash whenever an exception was thrown, because the http::client was deallocated by the stack unwind.
Put a note or something that the client should be outside the scope of the try/catch

@ghost ghost assigned deanberris Jan 26, 2013

@deanberris

This comment has been minimized.

Show comment
Hide comment
@deanberris

deanberris Jan 26, 2013

Member

I'll take this one on, just adding a note so I don't forget.

Member

deanberris commented Jan 26, 2013

I'll take this one on, just adding a note so I don't forget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment