{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/167389248","pull_request_review_id":95612598,"id":167389248,"diff_hunk":"@@ -111,10 +111,13 @@ private CommandResult executeCommand(Command command)  {\n             CommandResult result = command.execute();\n             storage.save(addressBook);\n             return result;\n+        } catch (StorageOperationException e) {\n+            ui.showToUser(e.getMessage());","path":"src/seedu/addressbook/Main.java","position":5,"original_position":5,"commit_id":"66ca34e1724e9c0e7791e4b5f16d8282118af2fc","original_commit_id":"66ca34e1724e9c0e7791e4b5f16d8282118af2fc","user":{"login":"karrui","id":22133008,"avatar_url":"https://avatars3.githubusercontent.com/u/22133008?v=4","gravatar_id":"","url":"https://api.github.com/users/karrui","html_url":"https://github.com/karrui","followers_url":"https://api.github.com/users/karrui/followers","following_url":"https://api.github.com/users/karrui/following{/other_user}","gists_url":"https://api.github.com/users/karrui/gists{/gist_id}","starred_url":"https://api.github.com/users/karrui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karrui/subscriptions","organizations_url":"https://api.github.com/users/karrui/orgs","repos_url":"https://api.github.com/users/karrui/repos","events_url":"https://api.github.com/users/karrui/events{/privacy}","received_events_url":"https://api.github.com/users/karrui/received_events","type":"User","site_admin":false},"body":"As discussed in the tutorial, are there any better ways to handle this exception instead of just telling the user what exception occurred?","created_at":"2018-02-10T04:39:22Z","updated_at":"2018-02-10T04:40:33Z","html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/196#discussion_r167389248","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/167389248"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/196#discussion_r167389248"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196","id":167981818,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/196","diff_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/196.diff","patch_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/196.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/196","number":196,"state":"open","locked":false,"title":"[W4.5c][F11-A1]Wu Hao","user":{"login":"Wuhao-ooo","id":24425242,"avatar_url":"https://avatars2.githubusercontent.com/u/24425242?v=4","gravatar_id":"","url":"https://api.github.com/users/Wuhao-ooo","html_url":"https://github.com/Wuhao-ooo","followers_url":"https://api.github.com/users/Wuhao-ooo/followers","following_url":"https://api.github.com/users/Wuhao-ooo/following{/other_user}","gists_url":"https://api.github.com/users/Wuhao-ooo/gists{/gist_id}","starred_url":"https://api.github.com/users/Wuhao-ooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wuhao-ooo/subscriptions","organizations_url":"https://api.github.com/users/Wuhao-ooo/orgs","repos_url":"https://api.github.com/users/Wuhao-ooo/repos","events_url":"https://api.github.com/users/Wuhao-ooo/events{/privacy}","received_events_url":"https://api.github.com/users/Wuhao-ooo/received_events","type":"User","site_admin":false},"body":"Handle StorageOperationException when the storage file is read only","created_at":"2018-02-08T14:10:18Z","updated_at":"2018-02-10T04:40:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c6c10923b354d749eb9430e47d0290b5542c58f","assignee":{"login":"karrui","id":22133008,"avatar_url":"https://avatars3.githubusercontent.com/u/22133008?v=4","gravatar_id":"","url":"https://api.github.com/users/karrui","html_url":"https://github.com/karrui","followers_url":"https://api.github.com/users/karrui/followers","following_url":"https://api.github.com/users/karrui/following{/other_user}","gists_url":"https://api.github.com/users/karrui/gists{/gist_id}","starred_url":"https://api.github.com/users/karrui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karrui/subscriptions","organizations_url":"https://api.github.com/users/karrui/orgs","repos_url":"https://api.github.com/users/karrui/repos","events_url":"https://api.github.com/users/karrui/events{/privacy}","received_events_url":"https://api.github.com/users/karrui/received_events","type":"User","site_admin":false},"assignees":[{"login":"okkhoy","id":1023494,"avatar_url":"https://avatars1.githubusercontent.com/u/1023494?v=4","gravatar_id":"","url":"https://api.github.com/users/okkhoy","html_url":"https://github.com/okkhoy","followers_url":"https://api.github.com/users/okkhoy/followers","following_url":"https://api.github.com/users/okkhoy/following{/other_user}","gists_url":"https://api.github.com/users/okkhoy/gists{/gist_id}","starred_url":"https://api.github.com/users/okkhoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkhoy/subscriptions","organizations_url":"https://api.github.com/users/okkhoy/orgs","repos_url":"https://api.github.com/users/okkhoy/repos","events_url":"https://api.github.com/users/okkhoy/events{/privacy}","received_events_url":"https://api.github.com/users/okkhoy/received_events","type":"User","site_admin":false},{"login":"karrui","id":22133008,"avatar_url":"https://avatars3.githubusercontent.com/u/22133008?v=4","gravatar_id":"","url":"https://api.github.com/users/karrui","html_url":"https://github.com/karrui","followers_url":"https://api.github.com/users/karrui/followers","following_url":"https://api.github.com/users/karrui/following{/other_user}","gists_url":"https://api.github.com/users/karrui/gists{/gist_id}","starred_url":"https://api.github.com/users/karrui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karrui/subscriptions","organizations_url":"https://api.github.com/users/karrui/orgs","repos_url":"https://api.github.com/users/karrui/repos","events_url":"https://api.github.com/users/karrui/events{/privacy}","received_events_url":"https://api.github.com/users/karrui/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":784873013,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/team.A1","name":"team.A1","color":"ededed","default":false},{"id":784873128,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/tutorial.F11","name":"tutorial.F11","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196/comments","review_comment_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/196/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/66ca34e1724e9c0e7791e4b5f16d8282118af2fc","head":{"label":"Wuhao-ooo:W4.5c","ref":"W4.5c","sha":"66ca34e1724e9c0e7791e4b5f16d8282118af2fc","user":{"login":"Wuhao-ooo","id":24425242,"avatar_url":"https://avatars2.githubusercontent.com/u/24425242?v=4","gravatar_id":"","url":"https://api.github.com/users/Wuhao-ooo","html_url":"https://github.com/Wuhao-ooo","followers_url":"https://api.github.com/users/Wuhao-ooo/followers","following_url":"https://api.github.com/users/Wuhao-ooo/following{/other_user}","gists_url":"https://api.github.com/users/Wuhao-ooo/gists{/gist_id}","starred_url":"https://api.github.com/users/Wuhao-ooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wuhao-ooo/subscriptions","organizations_url":"https://api.github.com/users/Wuhao-ooo/orgs","repos_url":"https://api.github.com/users/Wuhao-ooo/repos","events_url":"https://api.github.com/users/Wuhao-ooo/events{/privacy}","received_events_url":"https://api.github.com/users/Wuhao-ooo/received_events","type":"User","site_admin":false},"repo":{"id":120608696,"name":"addressbook-level2","full_name":"Wuhao-ooo/addressbook-level2","owner":{"login":"Wuhao-ooo","id":24425242,"avatar_url":"https://avatars2.githubusercontent.com/u/24425242?v=4","gravatar_id":"","url":"https://api.github.com/users/Wuhao-ooo","html_url":"https://github.com/Wuhao-ooo","followers_url":"https://api.github.com/users/Wuhao-ooo/followers","following_url":"https://api.github.com/users/Wuhao-ooo/following{/other_user}","gists_url":"https://api.github.com/users/Wuhao-ooo/gists{/gist_id}","starred_url":"https://api.github.com/users/Wuhao-ooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wuhao-ooo/subscriptions","organizations_url":"https://api.github.com/users/Wuhao-ooo/orgs","repos_url":"https://api.github.com/users/Wuhao-ooo/repos","events_url":"https://api.github.com/users/Wuhao-ooo/events{/privacy}","received_events_url":"https://api.github.com/users/Wuhao-ooo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Wuhao-ooo/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2","forks_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/forks","keys_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/events","assignees_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/merges","archive_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/Wuhao-ooo/addressbook-level2/deployments","created_at":"2018-02-07T11:51:27Z","updated_at":"2018-02-07T11:51:29Z","pushed_at":"2018-02-09T03:38:00Z","git_url":"git://github.com/Wuhao-ooo/addressbook-level2.git","ssh_url":"git@github.com:Wuhao-ooo/addressbook-level2.git","clone_url":"https://github.com/Wuhao-ooo/addressbook-level2.git","svn_url":"https://github.com/Wuhao-ooo/addressbook-level2","homepage":null,"size":3306,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nus-cs2103-AY1718S2:master","ref":"master","sha":"23644b1848abac9a973179ad015e20b7292394f5","user":{"login":"nus-cs2103-AY1718S2","id":34544003,"avatar_url":"https://avatars0.githubusercontent.com/u/34544003?v=4","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1718S2","html_url":"https://github.com/nus-cs2103-AY1718S2","followers_url":"https://api.github.com/users/nus-cs2103-AY1718S2/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1718S2/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1718S2/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1718S2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1718S2/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1718S2/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1718S2/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/received_events","type":"Organization","site_admin":false},"repo":{"id":115011334,"name":"addressbook-level2","full_name":"nus-cs2103-AY1718S2/addressbook-level2","owner":{"login":"nus-cs2103-AY1718S2","id":34544003,"avatar_url":"https://avatars0.githubusercontent.com/u/34544003?v=4","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1718S2","html_url":"https://github.com/nus-cs2103-AY1718S2","followers_url":"https://api.github.com/users/nus-cs2103-AY1718S2/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1718S2/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1718S2/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1718S2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1718S2/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1718S2/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1718S2/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2","forks_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/forks","keys_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/events","assignees_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/merges","archive_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/deployments","created_at":"2017-12-21T13:56:37Z","updated_at":"2018-02-10T03:00:19Z","pushed_at":"2018-02-09T17:03:33Z","git_url":"git://github.com/nus-cs2103-AY1718S2/addressbook-level2.git","ssh_url":"git@github.com:nus-cs2103-AY1718S2/addressbook-level2.git","clone_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2.git","svn_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2","homepage":null,"size":3419,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":156,"mirror_url":null,"archived":false,"open_issues_count":218,"license":null,"forks":156,"open_issues":218,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/196"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/196"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/66ca34e1724e9c0e7791e4b5f16d8282118af2fc"}},"author_association":"NONE"}}
{"actor":{"display_login":"karrui"}}