{"action":"opened","issue":{"url":"https://api.github.com/repos/barmic/cotize/issues/32","repository_url":"https://api.github.com/repos/barmic/cotize","labels_url":"https://api.github.com/repos/barmic/cotize/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/barmic/cotize/issues/32/comments","events_url":"https://api.github.com/repos/barmic/cotize/issues/32/events","html_url":"https://github.com/barmic/cotize/issues/32","id":142890550,"number":32,"title":"Gérer les erreurs de non unicité des identifiants","user":{"login":"barmic","id":179264,"avatar_url":"https://avatars.githubusercontent.com/u/179264?v=3","gravatar_id":"","url":"https://api.github.com/users/barmic","html_url":"https://github.com/barmic","followers_url":"https://api.github.com/users/barmic/followers","following_url":"https://api.github.com/users/barmic/following{/other_user}","gists_url":"https://api.github.com/users/barmic/gists{/gist_id}","starred_url":"https://api.github.com/users/barmic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barmic/subscriptions","organizations_url":"https://api.github.com/users/barmic/orgs","repos_url":"https://api.github.com/users/barmic/repos","events_url":"https://api.github.com/users/barmic/events{/privacy}","received_events_url":"https://api.github.com/users/barmic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/barmic/cotize/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T08:00:14Z","updated_at":"2016-03-23T08:00:14Z","closed_at":null,"body":"La méthode pour vérifier les identifiants peut renvoyer une erreur (si on ne trouve d'identifiant).\r\nLorsque cette erreur est renvoyée, on renvoie une erreur 400 (bad request), il faudrait renvoyer une erreur de la famille 500.\r\n\r\nC'est dans la classe [Utils](https://github.com/barmic/cotize/blob/master/backend/src/main/java/net/bons/comptes/cqrs/Utils.java) qu'il faudrait faire la correction.\r\n\r\nIl faut :\r\n\r\n- [ ] gérer l'erreur dans la classe [CreateProjectHandler](https://github.com/barmic/cotize/blob/master/backend/src/main/java/net/bons/comptes/cqrs/CreateProjectHandler.java#L76) pour lever une exception à nous\r\n- [ ] ajouter un cas particulier pour cette exception dans la classe Utils"}}