{"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":"closed","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},"assignees":[{"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":10,"created_at":"2016-06-10T01:28:30Z","updated_at":"2016-07-26T20:30:58Z","closed_at":"2016-07-26T20:30:58Z","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/235395447","html_url":"https://github.com/Microsoft/BotBuilder/issues/466#issuecomment-235395447","issue_url":"https://api.github.com/repos/Microsoft/BotBuilder/issues/466","id":235395447,"user":{"login":"v-thgratMSGit","id":18128909,"avatar_url":"https://avatars.githubusercontent.com/u/18128909?v=3","gravatar_id":"","url":"https://api.github.com/users/v-thgratMSGit","html_url":"https://github.com/v-thgratMSGit","followers_url":"https://api.github.com/users/v-thgratMSGit/followers","following_url":"https://api.github.com/users/v-thgratMSGit/following{/other_user}","gists_url":"https://api.github.com/users/v-thgratMSGit/gists{/gist_id}","starred_url":"https://api.github.com/users/v-thgratMSGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-thgratMSGit/subscriptions","organizations_url":"https://api.github.com/users/v-thgratMSGit/orgs","repos_url":"https://api.github.com/users/v-thgratMSGit/repos","events_url":"https://api.github.com/users/v-thgratMSGit/events{/privacy}","received_events_url":"https://api.github.com/users/v-thgratMSGit/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T20:30:58Z","updated_at":"2016-07-26T20:30:58Z","body":"Closing this issue. Thanks!"}}
{"actor":{"display_login":"v-thgratMSGit"}}