{"action":"created","issue":{"url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/24","repository_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp","labels_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/24/comments","events_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/24/events","html_url":"https://github.com/ReactiveSocket/reactivesocket-cpp/issues/24","id":155087105,"number":24,"title":"[feature request] simplify defining RequestHandler ","user":{"login":"yschimke","id":231923,"avatar_url":"https://avatars.githubusercontent.com/u/231923?v=3","gravatar_id":"","url":"https://api.github.com/users/yschimke","html_url":"https://github.com/yschimke","followers_url":"https://api.github.com/users/yschimke/followers","following_url":"https://api.github.com/users/yschimke/following{/other_user}","gists_url":"https://api.github.com/users/yschimke/gists{/gist_id}","starred_url":"https://api.github.com/users/yschimke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yschimke/subscriptions","organizations_url":"https://api.github.com/users/yschimke/orgs","repos_url":"https://api.github.com/users/yschimke/repos","events_url":"https://api.github.com/users/yschimke/events{/privacy}","received_events_url":"https://api.github.com/users/yschimke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-16T18:13:27Z","updated_at":"2016-05-17T21:02:11Z","closed_at":null,"body":"Some possible options to make it simpler to use, especially around \"kicking the tires\" style functionality\r\n\r\n- A builder approach like the java where you standard with a concrete RequestHandler that rejects all requests and then add handlers\r\n- base class with concrete methods you can override\r\n- concrete utility classes for things like subscriptions with default behaviour e.g. when not implementing  handleRequestChannel"},"comment":{"url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/comments/219852866","html_url":"https://github.com/ReactiveSocket/reactivesocket-cpp/issues/24#issuecomment-219852866","issue_url":"https://api.github.com/repos/ReactiveSocket/reactivesocket-cpp/issues/24","id":219852866,"user":{"login":"stupaq-fb","id":9034670,"avatar_url":"https://avatars.githubusercontent.com/u/9034670?v=3","gravatar_id":"","url":"https://api.github.com/users/stupaq-fb","html_url":"https://github.com/stupaq-fb","followers_url":"https://api.github.com/users/stupaq-fb/followers","following_url":"https://api.github.com/users/stupaq-fb/following{/other_user}","gists_url":"https://api.github.com/users/stupaq-fb/gists{/gist_id}","starred_url":"https://api.github.com/users/stupaq-fb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stupaq-fb/subscriptions","organizations_url":"https://api.github.com/users/stupaq-fb/orgs","repos_url":"https://api.github.com/users/stupaq-fb/repos","events_url":"https://api.github.com/users/stupaq-fb/events{/privacy}","received_events_url":"https://api.github.com/users/stupaq-fb/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T21:02:11Z","updated_at":"2016-05-17T21:02:11Z","body":"Maybe just call onError on the Subscriber you are provided with in the handler? That _should_ work since all relevant code is already hardened with ExecutorMixin. Is it worth trying?\r\n\r\nI have a strong bias against exceptions."}}