{"action":"created","comment":{"url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/comments/45161904","id":45161904,"diff_hunk":"@@ -0,0 +1,42 @@\n+package com.derpgroup.derpwizard.voice.exception;\n+\n+import java.util.Map;\n+\n+import com.amazon.speech.json.SpeechletResponseEnvelope;\n+import com.amazon.speech.speechlet.SpeechletResponse;\n+import com.amazon.speech.ui.SimpleCard;\n+import com.amazon.speech.ui.SsmlOutputSpeech;\n+\n+public class DerpwizardExceptionAlexaWrapper extends SpeechletResponseEnvelope {\n+  \n+  \n+  \n+  public DerpwizardExceptionAlexaWrapper(DerpwizardException exception){\n+    this(exception,null,null);\n+  }\n+  \n+  public DerpwizardExceptionAlexaWrapper(DerpwizardException exception, String version){\n+    this(exception, version, null);\n+  }\n+  \n+  public DerpwizardExceptionAlexaWrapper(DerpwizardException exception, Map<String,Object> sessionAttributes){\n+    this(exception, null, sessionAttributes);\n+  }\n+  \n+  public DerpwizardExceptionAlexaWrapper(DerpwizardException exception, String version, Map<String,Object> sessionAttributes){\n+    this.setVersion(version);\n+    this.setSessionAttributes(sessionAttributes);\n+    \n+    SsmlOutputSpeech outputSpeech = new SsmlOutputSpeech();\n+    outputSpeech.setSsml(exception.getSsmlMessage());\n+    \n+    SimpleCard card = new SimpleCard();\n+    card.setContent(exception.getMessage());\n+    card.setTitle(exception.getShortFormTextMessage());\n+    \n+    SpeechletResponse response = new SpeechletResponse();\n+    response.setCard(card);","path":"voice-interface/src/main/java/com/derpgroup/derpwizard/voice/exception/DerpwizardExceptionAlexaWrapper.java","position":38,"original_position":38,"commit_id":"560938ee02de5c4ef863baa3b258186b59190b1f","original_commit_id":"560938ee02de5c4ef863baa3b258186b59190b1f","user":{"login":"davidwphillips","id":13923996,"avatar_url":"https://avatars.githubusercontent.com/u/13923996?v=3","gravatar_id":"","url":"https://api.github.com/users/davidwphillips","html_url":"https://github.com/davidwphillips","followers_url":"https://api.github.com/users/davidwphillips/followers","following_url":"https://api.github.com/users/davidwphillips/following{/other_user}","gists_url":"https://api.github.com/users/davidwphillips/gists{/gist_id}","starred_url":"https://api.github.com/users/davidwphillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidwphillips/subscriptions","organizations_url":"https://api.github.com/users/davidwphillips/orgs","repos_url":"https://api.github.com/users/davidwphillips/repos","events_url":"https://api.github.com/users/davidwphillips/events{/privacy}","received_events_url":"https://api.github.com/users/davidwphillips/received_events","type":"User","site_admin":false},"body":"response.setShouldEndSession(true);","created_at":"2015-11-18T05:41:50Z","updated_at":"2015-11-18T05:41:50Z","html_url":"https://github.com/DERP-Group/derpwizard/pull/14#discussion_r45161904","pull_request_url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/comments/45161904"},"html":{"href":"https://github.com/DERP-Group/derpwizard/pull/14#discussion_r45161904"},"pull_request":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14","id":50741758,"html_url":"https://github.com/DERP-Group/derpwizard/pull/14","diff_url":"https://github.com/DERP-Group/derpwizard/pull/14.diff","patch_url":"https://github.com/DERP-Group/derpwizard/pull/14.patch","issue_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues/14","number":14,"state":"open","locked":false,"title":"First crack at exception handling","user":{"login":"galactoise","id":1614449,"avatar_url":"https://avatars.githubusercontent.com/u/1614449?v=3","gravatar_id":"","url":"https://api.github.com/users/galactoise","html_url":"https://github.com/galactoise","followers_url":"https://api.github.com/users/galactoise/followers","following_url":"https://api.github.com/users/galactoise/following{/other_user}","gists_url":"https://api.github.com/users/galactoise/gists{/gist_id}","starred_url":"https://api.github.com/users/galactoise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galactoise/subscriptions","organizations_url":"https://api.github.com/users/galactoise/orgs","repos_url":"https://api.github.com/users/galactoise/repos","events_url":"https://api.github.com/users/galactoise/events{/privacy}","received_events_url":"https://api.github.com/users/galactoise/received_events","type":"User","site_admin":false},"body":"One question that I ran into is what to do about whether we want to end conversation.  This is an existing concern in other parts of the code (where should that flag live in a normal non-exception flow?), and so I didn't want to add a boolean to the derpwizardexception object and make the problem worse.  For now, we assume any exception ends the conversation.","created_at":"2015-11-15T07:38:32Z","updated_at":"2015-11-18T05:41:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be7966343598a23b60cf1bd18ab8ea7778cbb497","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14/commits","review_comments_url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14/comments","review_comment_url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues/14/comments","statuses_url":"https://api.github.com/repos/DERP-Group/derpwizard/statuses/560938ee02de5c4ef863baa3b258186b59190b1f","head":{"label":"DERP-Group:errorHandling","ref":"errorHandling","sha":"560938ee02de5c4ef863baa3b258186b59190b1f","user":{"login":"DERP-Group","id":15042185,"avatar_url":"https://avatars.githubusercontent.com/u/15042185?v=3","gravatar_id":"","url":"https://api.github.com/users/DERP-Group","html_url":"https://github.com/DERP-Group","followers_url":"https://api.github.com/users/DERP-Group/followers","following_url":"https://api.github.com/users/DERP-Group/following{/other_user}","gists_url":"https://api.github.com/users/DERP-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/DERP-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DERP-Group/subscriptions","organizations_url":"https://api.github.com/users/DERP-Group/orgs","repos_url":"https://api.github.com/users/DERP-Group/repos","events_url":"https://api.github.com/users/DERP-Group/events{/privacy}","received_events_url":"https://api.github.com/users/DERP-Group/received_events","type":"Organization","site_admin":false},"repo":{"id":44288803,"name":"derpwizard","full_name":"DERP-Group/derpwizard","owner":{"login":"DERP-Group","id":15042185,"avatar_url":"https://avatars.githubusercontent.com/u/15042185?v=3","gravatar_id":"","url":"https://api.github.com/users/DERP-Group","html_url":"https://github.com/DERP-Group","followers_url":"https://api.github.com/users/DERP-Group/followers","following_url":"https://api.github.com/users/DERP-Group/following{/other_user}","gists_url":"https://api.github.com/users/DERP-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/DERP-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DERP-Group/subscriptions","organizations_url":"https://api.github.com/users/DERP-Group/orgs","repos_url":"https://api.github.com/users/DERP-Group/repos","events_url":"https://api.github.com/users/DERP-Group/events{/privacy}","received_events_url":"https://api.github.com/users/DERP-Group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DERP-Group/derpwizard","description":"Boilerplate DropTables project designed to interface with Amazon Echo.","fork":false,"url":"https://api.github.com/repos/DERP-Group/derpwizard","forks_url":"https://api.github.com/repos/DERP-Group/derpwizard/forks","keys_url":"https://api.github.com/repos/DERP-Group/derpwizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DERP-Group/derpwizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DERP-Group/derpwizard/teams","hooks_url":"https://api.github.com/repos/DERP-Group/derpwizard/hooks","issue_events_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues/events{/number}","events_url":"https://api.github.com/repos/DERP-Group/derpwizard/events","assignees_url":"https://api.github.com/repos/DERP-Group/derpwizard/assignees{/user}","branches_url":"https://api.github.com/repos/DERP-Group/derpwizard/branches{/branch}","tags_url":"https://api.github.com/repos/DERP-Group/derpwizard/tags","blobs_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DERP-Group/derpwizard/statuses/{sha}","languages_url":"https://api.github.com/repos/DERP-Group/derpwizard/languages","stargazers_url":"https://api.github.com/repos/DERP-Group/derpwizard/stargazers","contributors_url":"https://api.github.com/repos/DERP-Group/derpwizard/contributors","subscribers_url":"https://api.github.com/repos/DERP-Group/derpwizard/subscribers","subscription_url":"https://api.github.com/repos/DERP-Group/derpwizard/subscription","commits_url":"https://api.github.com/repos/DERP-Group/derpwizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/DERP-Group/derpwizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/DERP-Group/derpwizard/contents/{+path}","compare_url":"https://api.github.com/repos/DERP-Group/derpwizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DERP-Group/derpwizard/merges","archive_url":"https://api.github.com/repos/DERP-Group/derpwizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DERP-Group/derpwizard/downloads","issues_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues{/number}","pulls_url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls{/number}","milestones_url":"https://api.github.com/repos/DERP-Group/derpwizard/milestones{/number}","notifications_url":"https://api.github.com/repos/DERP-Group/derpwizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DERP-Group/derpwizard/labels{/name}","releases_url":"https://api.github.com/repos/DERP-Group/derpwizard/releases{/id}","created_at":"2015-10-15T02:26:14Z","updated_at":"2015-10-15T02:53:43Z","pushed_at":"2015-11-18T05:10:16Z","git_url":"git://github.com/DERP-Group/derpwizard.git","ssh_url":"git@github.com:DERP-Group/derpwizard.git","clone_url":"https://github.com/DERP-Group/derpwizard.git","svn_url":"https://github.com/DERP-Group/derpwizard","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"DERP-Group:master","ref":"master","sha":"40f07b307d162d1a9878d4142f501acd385f1758","user":{"login":"DERP-Group","id":15042185,"avatar_url":"https://avatars.githubusercontent.com/u/15042185?v=3","gravatar_id":"","url":"https://api.github.com/users/DERP-Group","html_url":"https://github.com/DERP-Group","followers_url":"https://api.github.com/users/DERP-Group/followers","following_url":"https://api.github.com/users/DERP-Group/following{/other_user}","gists_url":"https://api.github.com/users/DERP-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/DERP-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DERP-Group/subscriptions","organizations_url":"https://api.github.com/users/DERP-Group/orgs","repos_url":"https://api.github.com/users/DERP-Group/repos","events_url":"https://api.github.com/users/DERP-Group/events{/privacy}","received_events_url":"https://api.github.com/users/DERP-Group/received_events","type":"Organization","site_admin":false},"repo":{"id":44288803,"name":"derpwizard","full_name":"DERP-Group/derpwizard","owner":{"login":"DERP-Group","id":15042185,"avatar_url":"https://avatars.githubusercontent.com/u/15042185?v=3","gravatar_id":"","url":"https://api.github.com/users/DERP-Group","html_url":"https://github.com/DERP-Group","followers_url":"https://api.github.com/users/DERP-Group/followers","following_url":"https://api.github.com/users/DERP-Group/following{/other_user}","gists_url":"https://api.github.com/users/DERP-Group/gists{/gist_id}","starred_url":"https://api.github.com/users/DERP-Group/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DERP-Group/subscriptions","organizations_url":"https://api.github.com/users/DERP-Group/orgs","repos_url":"https://api.github.com/users/DERP-Group/repos","events_url":"https://api.github.com/users/DERP-Group/events{/privacy}","received_events_url":"https://api.github.com/users/DERP-Group/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DERP-Group/derpwizard","description":"Boilerplate DropTables project designed to interface with Amazon Echo.","fork":false,"url":"https://api.github.com/repos/DERP-Group/derpwizard","forks_url":"https://api.github.com/repos/DERP-Group/derpwizard/forks","keys_url":"https://api.github.com/repos/DERP-Group/derpwizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DERP-Group/derpwizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DERP-Group/derpwizard/teams","hooks_url":"https://api.github.com/repos/DERP-Group/derpwizard/hooks","issue_events_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues/events{/number}","events_url":"https://api.github.com/repos/DERP-Group/derpwizard/events","assignees_url":"https://api.github.com/repos/DERP-Group/derpwizard/assignees{/user}","branches_url":"https://api.github.com/repos/DERP-Group/derpwizard/branches{/branch}","tags_url":"https://api.github.com/repos/DERP-Group/derpwizard/tags","blobs_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DERP-Group/derpwizard/statuses/{sha}","languages_url":"https://api.github.com/repos/DERP-Group/derpwizard/languages","stargazers_url":"https://api.github.com/repos/DERP-Group/derpwizard/stargazers","contributors_url":"https://api.github.com/repos/DERP-Group/derpwizard/contributors","subscribers_url":"https://api.github.com/repos/DERP-Group/derpwizard/subscribers","subscription_url":"https://api.github.com/repos/DERP-Group/derpwizard/subscription","commits_url":"https://api.github.com/repos/DERP-Group/derpwizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/DERP-Group/derpwizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/DERP-Group/derpwizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/DERP-Group/derpwizard/contents/{+path}","compare_url":"https://api.github.com/repos/DERP-Group/derpwizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DERP-Group/derpwizard/merges","archive_url":"https://api.github.com/repos/DERP-Group/derpwizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DERP-Group/derpwizard/downloads","issues_url":"https://api.github.com/repos/DERP-Group/derpwizard/issues{/number}","pulls_url":"https://api.github.com/repos/DERP-Group/derpwizard/pulls{/number}","milestones_url":"https://api.github.com/repos/DERP-Group/derpwizard/milestones{/number}","notifications_url":"https://api.github.com/repos/DERP-Group/derpwizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DERP-Group/derpwizard/labels{/name}","releases_url":"https://api.github.com/repos/DERP-Group/derpwizard/releases{/id}","created_at":"2015-10-15T02:26:14Z","updated_at":"2015-10-15T02:53:43Z","pushed_at":"2015-11-18T05:10:16Z","git_url":"git://github.com/DERP-Group/derpwizard.git","ssh_url":"git@github.com:DERP-Group/derpwizard.git","clone_url":"https://github.com/DERP-Group/derpwizard.git","svn_url":"https://github.com/DERP-Group/derpwizard","homepage":null,"size":122,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14"},"html":{"href":"https://github.com/DERP-Group/derpwizard/pull/14"},"issue":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/issues/14"},"comments":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/DERP-Group/derpwizard/statuses/560938ee02de5c4ef863baa3b258186b59190b1f"}}}}