{"action":"created","comment":{"url":"https://api.github.com/repos/cellml/libcellml/pulls/comments/78322982","id":78322982,"diff_hunk":"@@ -146,35 +143,33 @@ class LIBCELLML_EXPORT ComponentEntity: public ImportedEntity\n      * @brief Take the units at the given @p index and return it.\n      *\n      * Removes the units at the given @p index position and returns it.\n-     * If an invalid @p index is passed to the method a @c std::out_of_range\n-     * exception is thrown.\n+     * @p index must be in the range [0, #units).\n      *\n      * @param index The index of the units to take (zero-based).\n      *\n-     * @return The units at the given @p index.\n+     * @return A reference to the units at the given @p index if the index is valid, @c nullptr otherwise.\n      */\n     UnitsPtr takeUnits(size_t index);\n \n     /**\n      * @brief Take the units with the given @p name and return it.\n      *\n-     * Takes the units with the given @p name and returns it.\n-     * If an invalid @p name is passed to the method a @c std::out_of_range\n-     * exception is thrown.\n+     * Takes the first occurence of the units with the given name @p name and returns it.\n+     * If no units with name @p name is found then a @c nullptr is returned.\n      *\n      * @overload\n      *\n      * @param name The name of the units to take.\n      *\n-     * @return The Units identified with the given @p name.\n+     * @return A reference to the units identified with the given @p name if found, @c nullptr otherwise","path":"src/api/libcellml/componententity.h","position":57,"original_position":57,"commit_id":"b33f69ea0b13da42a053d1ae61b68083c1e75e5b","original_commit_id":"b33f69ea0b13da42a053d1ae61b68083c1e75e5b","user":{"login":"agarny","id":602265,"avatar_url":"https://avatars.githubusercontent.com/u/602265?v=3","gravatar_id":"","url":"https://api.github.com/users/agarny","html_url":"https://github.com/agarny","followers_url":"https://api.github.com/users/agarny/followers","following_url":"https://api.github.com/users/agarny/following{/other_user}","gists_url":"https://api.github.com/users/agarny/gists{/gist_id}","starred_url":"https://api.github.com/users/agarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarny/subscriptions","organizations_url":"https://api.github.com/users/agarny/orgs","repos_url":"https://api.github.com/users/agarny/repos","events_url":"https://api.github.com/users/agarny/events{/privacy}","received_events_url":"https://api.github.com/users/agarny/received_events","type":"User","site_admin":false},"body":"Minor: missing trailing full stop.","created_at":"2016-09-12T07:07:04Z","updated_at":"2016-09-12T07:07:04Z","html_url":"https://github.com/cellml/libcellml/pull/143#discussion_r78322982","pull_request_url":"https://api.github.com/repos/cellml/libcellml/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/cellml/libcellml/pulls/comments/78322982"},"html":{"href":"https://github.com/cellml/libcellml/pull/143#discussion_r78322982"},"pull_request":{"href":"https://api.github.com/repos/cellml/libcellml/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/cellml/libcellml/pulls/143","id":84815887,"html_url":"https://github.com/cellml/libcellml/pull/143","diff_url":"https://github.com/cellml/libcellml/pull/143.diff","patch_url":"https://github.com/cellml/libcellml/pull/143.patch","issue_url":"https://api.github.com/repos/cellml/libcellml/issues/143","number":143,"state":"open","locked":false,"title":"No exceptions","user":{"login":"hsorby","id":778048,"avatar_url":"https://avatars.githubusercontent.com/u/778048?v=3","gravatar_id":"","url":"https://api.github.com/users/hsorby","html_url":"https://github.com/hsorby","followers_url":"https://api.github.com/users/hsorby/followers","following_url":"https://api.github.com/users/hsorby/following{/other_user}","gists_url":"https://api.github.com/users/hsorby/gists{/gist_id}","starred_url":"https://api.github.com/users/hsorby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsorby/subscriptions","organizations_url":"https://api.github.com/users/hsorby/orgs","repos_url":"https://api.github.com/users/hsorby/repos","events_url":"https://api.github.com/users/hsorby/events{/privacy}","received_events_url":"https://api.github.com/users/hsorby/received_events","type":"User","site_admin":false},"body":"Remove use of exceptions from the codebase.  Addresses issue #140.","created_at":"2016-09-12T05:01:57Z","updated_at":"2016-09-12T07:07:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c8fec0c6b20bb438e7ffeb3ad271cfe8869d70a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cellml/libcellml/pulls/143/commits","review_comments_url":"https://api.github.com/repos/cellml/libcellml/pulls/143/comments","review_comment_url":"https://api.github.com/repos/cellml/libcellml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cellml/libcellml/issues/143/comments","statuses_url":"https://api.github.com/repos/cellml/libcellml/statuses/b33f69ea0b13da42a053d1ae61b68083c1e75e5b","head":{"label":"hsorby:no_exceptions","ref":"no_exceptions","sha":"b33f69ea0b13da42a053d1ae61b68083c1e75e5b","user":{"login":"hsorby","id":778048,"avatar_url":"https://avatars.githubusercontent.com/u/778048?v=3","gravatar_id":"","url":"https://api.github.com/users/hsorby","html_url":"https://github.com/hsorby","followers_url":"https://api.github.com/users/hsorby/followers","following_url":"https://api.github.com/users/hsorby/following{/other_user}","gists_url":"https://api.github.com/users/hsorby/gists{/gist_id}","starred_url":"https://api.github.com/users/hsorby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsorby/subscriptions","organizations_url":"https://api.github.com/users/hsorby/orgs","repos_url":"https://api.github.com/users/hsorby/repos","events_url":"https://api.github.com/users/hsorby/events{/privacy}","received_events_url":"https://api.github.com/users/hsorby/received_events","type":"User","site_admin":false},"repo":{"id":34034875,"name":"libcellml","full_name":"hsorby/libcellml","owner":{"login":"hsorby","id":778048,"avatar_url":"https://avatars.githubusercontent.com/u/778048?v=3","gravatar_id":"","url":"https://api.github.com/users/hsorby","html_url":"https://github.com/hsorby","followers_url":"https://api.github.com/users/hsorby/followers","following_url":"https://api.github.com/users/hsorby/following{/other_user}","gists_url":"https://api.github.com/users/hsorby/gists{/gist_id}","starred_url":"https://api.github.com/users/hsorby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsorby/subscriptions","organizations_url":"https://api.github.com/users/hsorby/orgs","repos_url":"https://api.github.com/users/hsorby/repos","events_url":"https://api.github.com/users/hsorby/events{/privacy}","received_events_url":"https://api.github.com/users/hsorby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsorby/libcellml","description":"Prime repository for libCellML development.","fork":true,"url":"https://api.github.com/repos/hsorby/libcellml","forks_url":"https://api.github.com/repos/hsorby/libcellml/forks","keys_url":"https://api.github.com/repos/hsorby/libcellml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsorby/libcellml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsorby/libcellml/teams","hooks_url":"https://api.github.com/repos/hsorby/libcellml/hooks","issue_events_url":"https://api.github.com/repos/hsorby/libcellml/issues/events{/number}","events_url":"https://api.github.com/repos/hsorby/libcellml/events","assignees_url":"https://api.github.com/repos/hsorby/libcellml/assignees{/user}","branches_url":"https://api.github.com/repos/hsorby/libcellml/branches{/branch}","tags_url":"https://api.github.com/repos/hsorby/libcellml/tags","blobs_url":"https://api.github.com/repos/hsorby/libcellml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsorby/libcellml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsorby/libcellml/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsorby/libcellml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsorby/libcellml/statuses/{sha}","languages_url":"https://api.github.com/repos/hsorby/libcellml/languages","stargazers_url":"https://api.github.com/repos/hsorby/libcellml/stargazers","contributors_url":"https://api.github.com/repos/hsorby/libcellml/contributors","subscribers_url":"https://api.github.com/repos/hsorby/libcellml/subscribers","subscription_url":"https://api.github.com/repos/hsorby/libcellml/subscription","commits_url":"https://api.github.com/repos/hsorby/libcellml/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsorby/libcellml/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsorby/libcellml/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsorby/libcellml/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsorby/libcellml/contents/{+path}","compare_url":"https://api.github.com/repos/hsorby/libcellml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsorby/libcellml/merges","archive_url":"https://api.github.com/repos/hsorby/libcellml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsorby/libcellml/downloads","issues_url":"https://api.github.com/repos/hsorby/libcellml/issues{/number}","pulls_url":"https://api.github.com/repos/hsorby/libcellml/pulls{/number}","milestones_url":"https://api.github.com/repos/hsorby/libcellml/milestones{/number}","notifications_url":"https://api.github.com/repos/hsorby/libcellml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsorby/libcellml/labels{/name}","releases_url":"https://api.github.com/repos/hsorby/libcellml/releases{/id}","deployments_url":"https://api.github.com/repos/hsorby/libcellml/deployments","created_at":"2015-04-16T04:48:03Z","updated_at":"2016-04-12T02:23:10Z","pushed_at":"2016-09-12T05:07:15Z","git_url":"git://github.com/hsorby/libcellml.git","ssh_url":"git@github.com:hsorby/libcellml.git","clone_url":"https://github.com/hsorby/libcellml.git","svn_url":"https://github.com/hsorby/libcellml","homepage":null,"size":11623,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"cellml:develop","ref":"develop","sha":"fba015fee8327abf0a34e86c408ab448cd4c60ec","user":{"login":"cellml","id":2141414,"avatar_url":"https://avatars.githubusercontent.com/u/2141414?v=3","gravatar_id":"","url":"https://api.github.com/users/cellml","html_url":"https://github.com/cellml","followers_url":"https://api.github.com/users/cellml/followers","following_url":"https://api.github.com/users/cellml/following{/other_user}","gists_url":"https://api.github.com/users/cellml/gists{/gist_id}","starred_url":"https://api.github.com/users/cellml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellml/subscriptions","organizations_url":"https://api.github.com/users/cellml/orgs","repos_url":"https://api.github.com/users/cellml/repos","events_url":"https://api.github.com/users/cellml/events{/privacy}","received_events_url":"https://api.github.com/users/cellml/received_events","type":"Organization","site_admin":false},"repo":{"id":34033740,"name":"libcellml","full_name":"cellml/libcellml","owner":{"login":"cellml","id":2141414,"avatar_url":"https://avatars.githubusercontent.com/u/2141414?v=3","gravatar_id":"","url":"https://api.github.com/users/cellml","html_url":"https://github.com/cellml","followers_url":"https://api.github.com/users/cellml/followers","following_url":"https://api.github.com/users/cellml/following{/other_user}","gists_url":"https://api.github.com/users/cellml/gists{/gist_id}","starred_url":"https://api.github.com/users/cellml/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellml/subscriptions","organizations_url":"https://api.github.com/users/cellml/orgs","repos_url":"https://api.github.com/users/cellml/repos","events_url":"https://api.github.com/users/cellml/events{/privacy}","received_events_url":"https://api.github.com/users/cellml/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cellml/libcellml","description":"Repository for libCellML development.","fork":false,"url":"https://api.github.com/repos/cellml/libcellml","forks_url":"https://api.github.com/repos/cellml/libcellml/forks","keys_url":"https://api.github.com/repos/cellml/libcellml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cellml/libcellml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cellml/libcellml/teams","hooks_url":"https://api.github.com/repos/cellml/libcellml/hooks","issue_events_url":"https://api.github.com/repos/cellml/libcellml/issues/events{/number}","events_url":"https://api.github.com/repos/cellml/libcellml/events","assignees_url":"https://api.github.com/repos/cellml/libcellml/assignees{/user}","branches_url":"https://api.github.com/repos/cellml/libcellml/branches{/branch}","tags_url":"https://api.github.com/repos/cellml/libcellml/tags","blobs_url":"https://api.github.com/repos/cellml/libcellml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cellml/libcellml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cellml/libcellml/git/refs{/sha}","trees_url":"https://api.github.com/repos/cellml/libcellml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cellml/libcellml/statuses/{sha}","languages_url":"https://api.github.com/repos/cellml/libcellml/languages","stargazers_url":"https://api.github.com/repos/cellml/libcellml/stargazers","contributors_url":"https://api.github.com/repos/cellml/libcellml/contributors","subscribers_url":"https://api.github.com/repos/cellml/libcellml/subscribers","subscription_url":"https://api.github.com/repos/cellml/libcellml/subscription","commits_url":"https://api.github.com/repos/cellml/libcellml/commits{/sha}","git_commits_url":"https://api.github.com/repos/cellml/libcellml/git/commits{/sha}","comments_url":"https://api.github.com/repos/cellml/libcellml/comments{/number}","issue_comment_url":"https://api.github.com/repos/cellml/libcellml/issues/comments{/number}","contents_url":"https://api.github.com/repos/cellml/libcellml/contents/{+path}","compare_url":"https://api.github.com/repos/cellml/libcellml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cellml/libcellml/merges","archive_url":"https://api.github.com/repos/cellml/libcellml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cellml/libcellml/downloads","issues_url":"https://api.github.com/repos/cellml/libcellml/issues{/number}","pulls_url":"https://api.github.com/repos/cellml/libcellml/pulls{/number}","milestones_url":"https://api.github.com/repos/cellml/libcellml/milestones{/number}","notifications_url":"https://api.github.com/repos/cellml/libcellml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cellml/libcellml/labels{/name}","releases_url":"https://api.github.com/repos/cellml/libcellml/releases{/id}","deployments_url":"https://api.github.com/repos/cellml/libcellml/deployments","created_at":"2015-04-16T04:10:34Z","updated_at":"2016-04-07T02:27:38Z","pushed_at":"2016-09-12T05:07:15Z","git_url":"git://github.com/cellml/libcellml.git","ssh_url":"git@github.com:cellml/libcellml.git","clone_url":"https://github.com/cellml/libcellml.git","svn_url":"https://github.com/cellml/libcellml","homepage":"","size":11649,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":10,"forks":4,"open_issues":10,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cellml/libcellml/pulls/143"},"html":{"href":"https://github.com/cellml/libcellml/pull/143"},"issue":{"href":"https://api.github.com/repos/cellml/libcellml/issues/143"},"comments":{"href":"https://api.github.com/repos/cellml/libcellml/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/cellml/libcellml/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/cellml/libcellml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cellml/libcellml/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/cellml/libcellml/statuses/b33f69ea0b13da42a053d1ae61b68083c1e75e5b"}}}}
{"actor":{"display_login":"agarny"}}