{"action":"created","comment":{"url":"https://api.github.com/repos/luturol/Clinica/pulls/comments/146095137","pull_request_review_id":70997283,"id":146095137,"diff_hunk":"@@ -37,40 +41,45 @@ private String getOpcoes() {\n \t@Override\n \tpublic void menu() {\n \t\tint opcao = 0;\n+\t\tSystem.out.println(TITULO_MENU);\n \t\tdo {\n-\t\t\tSystem.out.println(getOpcoes());\n-\t\t\topcao = scanner.getInt();\n-\t\t\tescolheOpcao(opcao);\n+\t\t\ttry {\n+\t\t\t\tSystem.out.println(getOpcoes());\n+\t\t\t\topcao = scanner.getInt();\n+\t\t\t\tescolheOpcao(opcao);\n+\t\t\t} catch (Exception ex) {\n+\t\t\t\tSystem.out.println(ex.getMessage());\n+\t\t\t}\n \t\t} while (opcao != 0);\n \t}\n \n-\tprivate void escolheOpcao(int opcao) {\n+\tprivate void escolheOpcao(int opcao) throws Exception {\n \t\tif (opcao == 0) {\n \t\t\treturn;\n \t\t} else if (opcao == 1) {\n \t\t\timprimeResultadoDaBusca(Util.perguntaCPF(scanner), FiltroPaciente.CPF);\n-\t\t} else if(opcao == 2) {\n+\t\t} else if (opcao == 2) {\n \t\t\timprimeResultadoDaBusca(Util.perguntaNome(scanner), FiltroPaciente.NOME);\n-\t\t} else if(opcao == 3) {\n+\t\t} else if (opcao == 3) {\n \t\t\timprimeResultadoDaBusca(Util.perguntaEmail(scanner), FiltroPaciente.EMAIL);\n+\t\t} else {\n+\t\t\tthrow new Exception(ERRO_OPCAO_INVALIDA);","path":"src/main/java/com/clinica/Pacientes/BuscaPacienteView.java","position":66,"original_position":55,"commit_id":"708fbf57b4cb3a1b47747e43a7e421efe9ead0f2","original_commit_id":"a144e86a119bd8cda0ab3d5b9470df6a2460c4e8","user":{"login":"luturol","id":9202337,"avatar_url":"https://avatars1.githubusercontent.com/u/9202337?v=4","gravatar_id":"","url":"https://api.github.com/users/luturol","html_url":"https://github.com/luturol","followers_url":"https://api.github.com/users/luturol/followers","following_url":"https://api.github.com/users/luturol/following{/other_user}","gists_url":"https://api.github.com/users/luturol/gists{/gist_id}","starred_url":"https://api.github.com/users/luturol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luturol/subscriptions","organizations_url":"https://api.github.com/users/luturol/orgs","repos_url":"https://api.github.com/users/luturol/repos","events_url":"https://api.github.com/users/luturol/events{/privacy}","received_events_url":"https://api.github.com/users/luturol/received_events","type":"User","site_admin":false},"body":"exceções do sistema ainda não foram implementadas. ","created_at":"2017-10-21T03:07:09Z","updated_at":"2017-10-21T03:07:09Z","html_url":"https://github.com/luturol/Clinica/pull/9#discussion_r146095137","pull_request_url":"https://api.github.com/repos/luturol/Clinica/pulls/9","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/luturol/Clinica/pulls/comments/146095137"},"html":{"href":"https://github.com/luturol/Clinica/pull/9#discussion_r146095137"},"pull_request":{"href":"https://api.github.com/repos/luturol/Clinica/pulls/9"}},"in_reply_to_id":146094866},"pull_request":{"url":"https://api.github.com/repos/luturol/Clinica/pulls/9","id":147923094,"html_url":"https://github.com/luturol/Clinica/pull/9","diff_url":"https://github.com/luturol/Clinica/pull/9.diff","patch_url":"https://github.com/luturol/Clinica/pull/9.patch","issue_url":"https://api.github.com/repos/luturol/Clinica/issues/9","number":9,"state":"open","locked":false,"title":"Refatorando Paciente","user":{"login":"luturol","id":9202337,"avatar_url":"https://avatars1.githubusercontent.com/u/9202337?v=4","gravatar_id":"","url":"https://api.github.com/users/luturol","html_url":"https://github.com/luturol","followers_url":"https://api.github.com/users/luturol/followers","following_url":"https://api.github.com/users/luturol/following{/other_user}","gists_url":"https://api.github.com/users/luturol/gists{/gist_id}","starred_url":"https://api.github.com/users/luturol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luturol/subscriptions","organizations_url":"https://api.github.com/users/luturol/orgs","repos_url":"https://api.github.com/users/luturol/repos","events_url":"https://api.github.com/users/luturol/events{/privacy}","received_events_url":"https://api.github.com/users/luturol/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-21T01:57:56Z","updated_at":"2017-10-21T03:07:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5e9294db22c517ade591d3b5f9cb1dc8cde0d18","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/luturol/Clinica/pulls/9/commits","review_comments_url":"https://api.github.com/repos/luturol/Clinica/pulls/9/comments","review_comment_url":"https://api.github.com/repos/luturol/Clinica/pulls/comments{/number}","comments_url":"https://api.github.com/repos/luturol/Clinica/issues/9/comments","statuses_url":"https://api.github.com/repos/luturol/Clinica/statuses/708fbf57b4cb3a1b47747e43a7e421efe9ead0f2","head":{"label":"luturol:refactoring-paciente","ref":"refactoring-paciente","sha":"708fbf57b4cb3a1b47747e43a7e421efe9ead0f2","user":{"login":"luturol","id":9202337,"avatar_url":"https://avatars1.githubusercontent.com/u/9202337?v=4","gravatar_id":"","url":"https://api.github.com/users/luturol","html_url":"https://github.com/luturol","followers_url":"https://api.github.com/users/luturol/followers","following_url":"https://api.github.com/users/luturol/following{/other_user}","gists_url":"https://api.github.com/users/luturol/gists{/gist_id}","starred_url":"https://api.github.com/users/luturol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luturol/subscriptions","organizations_url":"https://api.github.com/users/luturol/orgs","repos_url":"https://api.github.com/users/luturol/repos","events_url":"https://api.github.com/users/luturol/events{/privacy}","received_events_url":"https://api.github.com/users/luturol/received_events","type":"User","site_admin":false},"repo":{"id":101562779,"name":"Clinica","full_name":"luturol/Clinica","owner":{"login":"luturol","id":9202337,"avatar_url":"https://avatars1.githubusercontent.com/u/9202337?v=4","gravatar_id":"","url":"https://api.github.com/users/luturol","html_url":"https://github.com/luturol","followers_url":"https://api.github.com/users/luturol/followers","following_url":"https://api.github.com/users/luturol/following{/other_user}","gists_url":"https://api.github.com/users/luturol/gists{/gist_id}","starred_url":"https://api.github.com/users/luturol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luturol/subscriptions","organizations_url":"https://api.github.com/users/luturol/orgs","repos_url":"https://api.github.com/users/luturol/repos","events_url":"https://api.github.com/users/luturol/events{/privacy}","received_events_url":"https://api.github.com/users/luturol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luturol/Clinica","description":null,"fork":false,"url":"https://api.github.com/repos/luturol/Clinica","forks_url":"https://api.github.com/repos/luturol/Clinica/forks","keys_url":"https://api.github.com/repos/luturol/Clinica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luturol/Clinica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luturol/Clinica/teams","hooks_url":"https://api.github.com/repos/luturol/Clinica/hooks","issue_events_url":"https://api.github.com/repos/luturol/Clinica/issues/events{/number}","events_url":"https://api.github.com/repos/luturol/Clinica/events","assignees_url":"https://api.github.com/repos/luturol/Clinica/assignees{/user}","branches_url":"https://api.github.com/repos/luturol/Clinica/branches{/branch}","tags_url":"https://api.github.com/repos/luturol/Clinica/tags","blobs_url":"https://api.github.com/repos/luturol/Clinica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luturol/Clinica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luturol/Clinica/git/refs{/sha}","trees_url":"https://api.github.com/repos/luturol/Clinica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luturol/Clinica/statuses/{sha}","languages_url":"https://api.github.com/repos/luturol/Clinica/languages","stargazers_url":"https://api.github.com/repos/luturol/Clinica/stargazers","contributors_url":"https://api.github.com/repos/luturol/Clinica/contributors","subscribers_url":"https://api.github.com/repos/luturol/Clinica/subscribers","subscription_url":"https://api.github.com/repos/luturol/Clinica/subscription","commits_url":"https://api.github.com/repos/luturol/Clinica/commits{/sha}","git_commits_url":"https://api.github.com/repos/luturol/Clinica/git/commits{/sha}","comments_url":"https://api.github.com/repos/luturol/Clinica/comments{/number}","issue_comment_url":"https://api.github.com/repos/luturol/Clinica/issues/comments{/number}","contents_url":"https://api.github.com/repos/luturol/Clinica/contents/{+path}","compare_url":"https://api.github.com/repos/luturol/Clinica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luturol/Clinica/merges","archive_url":"https://api.github.com/repos/luturol/Clinica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luturol/Clinica/downloads","issues_url":"https://api.github.com/repos/luturol/Clinica/issues{/number}","pulls_url":"https://api.github.com/repos/luturol/Clinica/pulls{/number}","milestones_url":"https://api.github.com/repos/luturol/Clinica/milestones{/number}","notifications_url":"https://api.github.com/repos/luturol/Clinica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luturol/Clinica/labels{/name}","releases_url":"https://api.github.com/repos/luturol/Clinica/releases{/id}","deployments_url":"https://api.github.com/repos/luturol/Clinica/deployments","created_at":"2017-08-27T15:46:19Z","updated_at":"2017-08-27T18:13:17Z","pushed_at":"2017-10-21T02:47:09Z","git_url":"git://github.com/luturol/Clinica.git","ssh_url":"git@github.com:luturol/Clinica.git","clone_url":"https://github.com/luturol/Clinica.git","svn_url":"https://github.com/luturol/Clinica","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"luturol:master","ref":"master","sha":"053e4a17894015395118cdc4fb8c8550999d372b","user":{"login":"luturol","id":9202337,"avatar_url":"https://avatars1.githubusercontent.com/u/9202337?v=4","gravatar_id":"","url":"https://api.github.com/users/luturol","html_url":"https://github.com/luturol","followers_url":"https://api.github.com/users/luturol/followers","following_url":"https://api.github.com/users/luturol/following{/other_user}","gists_url":"https://api.github.com/users/luturol/gists{/gist_id}","starred_url":"https://api.github.com/users/luturol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luturol/subscriptions","organizations_url":"https://api.github.com/users/luturol/orgs","repos_url":"https://api.github.com/users/luturol/repos","events_url":"https://api.github.com/users/luturol/events{/privacy}","received_events_url":"https://api.github.com/users/luturol/received_events","type":"User","site_admin":false},"repo":{"id":101562779,"name":"Clinica","full_name":"luturol/Clinica","owner":{"login":"luturol","id":9202337,"avatar_url":"https://avatars1.githubusercontent.com/u/9202337?v=4","gravatar_id":"","url":"https://api.github.com/users/luturol","html_url":"https://github.com/luturol","followers_url":"https://api.github.com/users/luturol/followers","following_url":"https://api.github.com/users/luturol/following{/other_user}","gists_url":"https://api.github.com/users/luturol/gists{/gist_id}","starred_url":"https://api.github.com/users/luturol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luturol/subscriptions","organizations_url":"https://api.github.com/users/luturol/orgs","repos_url":"https://api.github.com/users/luturol/repos","events_url":"https://api.github.com/users/luturol/events{/privacy}","received_events_url":"https://api.github.com/users/luturol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luturol/Clinica","description":null,"fork":false,"url":"https://api.github.com/repos/luturol/Clinica","forks_url":"https://api.github.com/repos/luturol/Clinica/forks","keys_url":"https://api.github.com/repos/luturol/Clinica/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luturol/Clinica/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luturol/Clinica/teams","hooks_url":"https://api.github.com/repos/luturol/Clinica/hooks","issue_events_url":"https://api.github.com/repos/luturol/Clinica/issues/events{/number}","events_url":"https://api.github.com/repos/luturol/Clinica/events","assignees_url":"https://api.github.com/repos/luturol/Clinica/assignees{/user}","branches_url":"https://api.github.com/repos/luturol/Clinica/branches{/branch}","tags_url":"https://api.github.com/repos/luturol/Clinica/tags","blobs_url":"https://api.github.com/repos/luturol/Clinica/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luturol/Clinica/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luturol/Clinica/git/refs{/sha}","trees_url":"https://api.github.com/repos/luturol/Clinica/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luturol/Clinica/statuses/{sha}","languages_url":"https://api.github.com/repos/luturol/Clinica/languages","stargazers_url":"https://api.github.com/repos/luturol/Clinica/stargazers","contributors_url":"https://api.github.com/repos/luturol/Clinica/contributors","subscribers_url":"https://api.github.com/repos/luturol/Clinica/subscribers","subscription_url":"https://api.github.com/repos/luturol/Clinica/subscription","commits_url":"https://api.github.com/repos/luturol/Clinica/commits{/sha}","git_commits_url":"https://api.github.com/repos/luturol/Clinica/git/commits{/sha}","comments_url":"https://api.github.com/repos/luturol/Clinica/comments{/number}","issue_comment_url":"https://api.github.com/repos/luturol/Clinica/issues/comments{/number}","contents_url":"https://api.github.com/repos/luturol/Clinica/contents/{+path}","compare_url":"https://api.github.com/repos/luturol/Clinica/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luturol/Clinica/merges","archive_url":"https://api.github.com/repos/luturol/Clinica/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luturol/Clinica/downloads","issues_url":"https://api.github.com/repos/luturol/Clinica/issues{/number}","pulls_url":"https://api.github.com/repos/luturol/Clinica/pulls{/number}","milestones_url":"https://api.github.com/repos/luturol/Clinica/milestones{/number}","notifications_url":"https://api.github.com/repos/luturol/Clinica/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luturol/Clinica/labels{/name}","releases_url":"https://api.github.com/repos/luturol/Clinica/releases{/id}","deployments_url":"https://api.github.com/repos/luturol/Clinica/deployments","created_at":"2017-08-27T15:46:19Z","updated_at":"2017-08-27T18:13:17Z","pushed_at":"2017-10-21T02:47:09Z","git_url":"git://github.com/luturol/Clinica.git","ssh_url":"git@github.com:luturol/Clinica.git","clone_url":"https://github.com/luturol/Clinica.git","svn_url":"https://github.com/luturol/Clinica","homepage":null,"size":60,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/luturol/Clinica/pulls/9"},"html":{"href":"https://github.com/luturol/Clinica/pull/9"},"issue":{"href":"https://api.github.com/repos/luturol/Clinica/issues/9"},"comments":{"href":"https://api.github.com/repos/luturol/Clinica/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/luturol/Clinica/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/luturol/Clinica/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/luturol/Clinica/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/luturol/Clinica/statuses/708fbf57b4cb3a1b47747e43a7e421efe9ead0f2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"luturol"}}