{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/466","repository_url":"https://api.github.com/repos/Microsoft/BotBuilder","labels_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/466/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/466/comments","events_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/466/events","html_url":"https://github.com/Microsoft/BotBuilder/issues/466","id":159542415,"number":466,"title":"Exception when attempts count is reached in Prompt","user":{"login":"evnik","id":10916937,"avatar_url":"https://avatars.githubusercontent.com/u/10916937?v=3","gravatar_id":"","url":"https://api.github.com/users/evnik","html_url":"https://github.com/evnik","followers_url":"https://api.github.com/users/evnik/followers","following_url":"https://api.github.com/users/evnik/following{/other_user}","gists_url":"https://api.github.com/users/evnik/gists{/gist_id}","starred_url":"https://api.github.com/users/evnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evnik/subscriptions","organizations_url":"https://api.github.com/users/evnik/orgs","repos_url":"https://api.github.com/users/evnik/repos","events_url":"https://api.github.com/users/evnik/events{/privacy}","received_events_url":"https://api.github.com/users/evnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"willportnoy","id":17912714,"avatar_url":"https://avatars.githubusercontent.com/u/17912714?v=3","gravatar_id":"","url":"https://api.github.com/users/willportnoy","html_url":"https://github.com/willportnoy","followers_url":"https://api.github.com/users/willportnoy/followers","following_url":"https://api.github.com/users/willportnoy/following{/other_user}","gists_url":"https://api.github.com/users/willportnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/willportnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willportnoy/subscriptions","organizations_url":"https://api.github.com/users/willportnoy/orgs","repos_url":"https://api.github.com/users/willportnoy/repos","events_url":"https://api.github.com/users/willportnoy/events{/privacy}","received_events_url":"https://api.github.com/users/willportnoy/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-06-10T01:28:30Z","updated_at":"2016-06-10T16:17:12Z","closed_at":null,"body":"Why the `Prompt<T, U>` [throws](https://github.com/Microsoft/BotBuilder/blob/9ebdfac5aa7c02d324361c3593cf82c1ca705a60/CSharp/Library/Dialogs/PromptDialog.cs#L599) an `Exception` if attempts count is reached? How caller code should recognize that case? Even the PizzaBot sample fails if you try to enter **Today** instead of day of week three times.\r\nMaybe it'll be better to replace it on call of `Done` passing default value of `T`?\r\n```C#\r\ncontext.Done(default(T))\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/comments/225227666","html_url":"https://github.com/Microsoft/BotBuilder/issues/466#issuecomment-225227666","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/466","id":225227666,"user":{"login":"willportnoy","id":17912714,"avatar_url":"https://avatars.githubusercontent.com/u/17912714?v=3","gravatar_id":"","url":"https://api.github.com/users/willportnoy","html_url":"https://github.com/willportnoy","followers_url":"https://api.github.com/users/willportnoy/followers","following_url":"https://api.github.com/users/willportnoy/following{/other_user}","gists_url":"https://api.github.com/users/willportnoy/gists{/gist_id}","starred_url":"https://api.github.com/users/willportnoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willportnoy/subscriptions","organizations_url":"https://api.github.com/users/willportnoy/orgs","repos_url":"https://api.github.com/users/willportnoy/repos","events_url":"https://api.github.com/users/willportnoy/events{/privacy}","received_events_url":"https://api.github.com/users/willportnoy/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T16:17:11Z","updated_at":"2016-06-10T16:17:11Z","body":"In the callback specified when the Prompt is called, the await on the IAwaitable should propagate the exception, so you should be able to detect that case.\r\n\r\nIf you're suggesting \"exceptions as control flow\" is not appropriate, that's a reasonable position to take - I don't understand what you mean yet."}}
{"actor":{"display_login":"willportnoy"}}