{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/42406766","id":42406766,"diff_hunk":"@@ -2145,3 +2145,58 @@ pure nothrow @safe unittest\n \n     auto infSlice = infinite[0 .. $]; // this would throw otherwise\n }\n+\n+\n+/**\n+ * Convenience mixin for trivially sub-classing exceptions\n+ *\n+ * Even trivially sub-classing an exception involves writing boilerplate code\n+ * for the constructor to correctly pass in the source file and line number the\n+ * exception was thrown from. This mixin makes it easier.\n+ *\n+ * Note that if you want to pass in special arguments to your exception, you\n+ * obviously can't use this mixin and have to write the constructor manually.\n+ */","path":"std/exception.d","position":15,"original_position":15,"commit_id":"57246edeab73ada4909edc92c080769951b7d25a","original_commit_id":"57246edeab73ada4909edc92c080769951b7d25a","user":{"login":"jmdavis","id":579956,"avatar_url":"https://avatars.githubusercontent.com/u/579956?v=3","gravatar_id":"","url":"https://api.github.com/users/jmdavis","html_url":"https://github.com/jmdavis","followers_url":"https://api.github.com/users/jmdavis/followers","following_url":"https://api.github.com/users/jmdavis/following{/other_user}","gists_url":"https://api.github.com/users/jmdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/jmdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmdavis/subscriptions","organizations_url":"https://api.github.com/users/jmdavis/orgs","repos_url":"https://api.github.com/users/jmdavis/repos","events_url":"https://api.github.com/users/jmdavis/events{/privacy}","received_events_url":"https://api.github.com/users/jmdavis/received_events","type":"User","site_admin":false},"body":"I experimented with the ddoc generation for this a bit, and it looks like the constructors' documentation doesn't end up in the exception's documentation unless the mixin statement has a ddoc comment on it. So, I think that you should mention that in the documentation and possibly put `///` on the mixin statement in your example.","created_at":"2015-10-19T18:19:05Z","updated_at":"2015-10-19T18:19:05Z","html_url":"https://github.com/D-Programming-Language/phobos/pull/3751#discussion_r42406766","pull_request_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments/42406766"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3751#discussion_r42406766"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751","id":48089149,"html_url":"https://github.com/D-Programming-Language/phobos/pull/3751","diff_url":"https://github.com/D-Programming-Language/phobos/pull/3751.diff","patch_url":"https://github.com/D-Programming-Language/phobos/pull/3751.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3751","number":3751,"state":"open","locked":false,"title":"Standard exception constructors","user":{"login":"jamadagni","id":948170,"avatar_url":"https://avatars.githubusercontent.com/u/948170?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadagni","html_url":"https://github.com/jamadagni","followers_url":"https://api.github.com/users/jamadagni/followers","following_url":"https://api.github.com/users/jamadagni/following{/other_user}","gists_url":"https://api.github.com/users/jamadagni/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadagni/subscriptions","organizations_url":"https://api.github.com/users/jamadagni/orgs","repos_url":"https://api.github.com/users/jamadagni/repos","events_url":"https://api.github.com/users/jamadagni/events{/privacy}","received_events_url":"https://api.github.com/users/jamadagni/received_events","type":"User","site_admin":false},"body":"As per https://github.com/D-Programming-Language/druntime/pull/1413#issuecomment-149167301...","created_at":"2015-10-19T15:45:31Z","updated_at":"2015-10-19T18:19:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bf991b05b4f758d82944f585a5708b3c7a028fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3751/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/57246edeab73ada4909edc92c080769951b7d25a","head":{"label":"jamadagni:StandardExceptionConstructors","ref":"StandardExceptionConstructors","sha":"57246edeab73ada4909edc92c080769951b7d25a","user":{"login":"jamadagni","id":948170,"avatar_url":"https://avatars.githubusercontent.com/u/948170?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadagni","html_url":"https://github.com/jamadagni","followers_url":"https://api.github.com/users/jamadagni/followers","following_url":"https://api.github.com/users/jamadagni/following{/other_user}","gists_url":"https://api.github.com/users/jamadagni/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadagni/subscriptions","organizations_url":"https://api.github.com/users/jamadagni/orgs","repos_url":"https://api.github.com/users/jamadagni/repos","events_url":"https://api.github.com/users/jamadagni/events{/privacy}","received_events_url":"https://api.github.com/users/jamadagni/received_events","type":"User","site_admin":false},"repo":{"id":44473888,"name":"phobos","full_name":"jamadagni/phobos","owner":{"login":"jamadagni","id":948170,"avatar_url":"https://avatars.githubusercontent.com/u/948170?v=3","gravatar_id":"","url":"https://api.github.com/users/jamadagni","html_url":"https://github.com/jamadagni","followers_url":"https://api.github.com/users/jamadagni/followers","following_url":"https://api.github.com/users/jamadagni/following{/other_user}","gists_url":"https://api.github.com/users/jamadagni/gists{/gist_id}","starred_url":"https://api.github.com/users/jamadagni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamadagni/subscriptions","organizations_url":"https://api.github.com/users/jamadagni/orgs","repos_url":"https://api.github.com/users/jamadagni/repos","events_url":"https://api.github.com/users/jamadagni/events{/privacy}","received_events_url":"https://api.github.com/users/jamadagni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamadagni/phobos","description":"The standard library of the D programming language","fork":true,"url":"https://api.github.com/repos/jamadagni/phobos","forks_url":"https://api.github.com/repos/jamadagni/phobos/forks","keys_url":"https://api.github.com/repos/jamadagni/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamadagni/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamadagni/phobos/teams","hooks_url":"https://api.github.com/repos/jamadagni/phobos/hooks","issue_events_url":"https://api.github.com/repos/jamadagni/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/jamadagni/phobos/events","assignees_url":"https://api.github.com/repos/jamadagni/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/jamadagni/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/jamadagni/phobos/tags","blobs_url":"https://api.github.com/repos/jamadagni/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamadagni/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamadagni/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamadagni/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamadagni/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/jamadagni/phobos/languages","stargazers_url":"https://api.github.com/repos/jamadagni/phobos/stargazers","contributors_url":"https://api.github.com/repos/jamadagni/phobos/contributors","subscribers_url":"https://api.github.com/repos/jamadagni/phobos/subscribers","subscription_url":"https://api.github.com/repos/jamadagni/phobos/subscription","commits_url":"https://api.github.com/repos/jamadagni/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamadagni/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamadagni/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamadagni/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamadagni/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/jamadagni/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamadagni/phobos/merges","archive_url":"https://api.github.com/repos/jamadagni/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamadagni/phobos/downloads","issues_url":"https://api.github.com/repos/jamadagni/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/jamadagni/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/jamadagni/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/jamadagni/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamadagni/phobos/labels{/name}","releases_url":"https://api.github.com/repos/jamadagni/phobos/releases{/id}","created_at":"2015-10-18T10:29:19Z","updated_at":"2015-10-18T10:29:29Z","pushed_at":"2015-10-19T15:48:53Z","git_url":"git://github.com/jamadagni/phobos.git","ssh_url":"git@github.com:jamadagni/phobos.git","clone_url":"https://github.com/jamadagni/phobos.git","svn_url":"https://github.com/jamadagni/phobos","homepage":"dlang.org/phobos","size":46779,"stargazers_count":0,"watchers_count":0,"language":"D","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":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"60e69567dc5c704cb910f7579db0631005c441ec","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257084,"name":"phobos","full_name":"D-Programming-Language/phobos","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/phobos","description":"The standard library of the D programming language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/phobos","forks_url":"https://api.github.com/repos/D-Programming-Language/phobos/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/phobos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/phobos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/phobos/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/phobos/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/phobos/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/phobos/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/phobos/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/phobos/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/phobos/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/phobos/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/phobos/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/phobos/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/phobos/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/phobos/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/phobos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/phobos/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/phobos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/phobos/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/phobos/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/phobos/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/phobos/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/phobos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/phobos/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/phobos/releases{/id}","created_at":"2011-01-15T07:00:06Z","updated_at":"2015-10-14T23:58:15Z","pushed_at":"2015-10-19T18:04:33Z","git_url":"git://github.com/D-Programming-Language/phobos.git","ssh_url":"git@github.com:D-Programming-Language/phobos.git","clone_url":"https://github.com/D-Programming-Language/phobos.git","svn_url":"https://github.com/D-Programming-Language/phobos","homepage":"dlang.org/phobos","size":93202,"stargazers_count":633,"watchers_count":633,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":424,"mirror_url":null,"open_issues_count":74,"forks":424,"open_issues":74,"watchers":633,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751"},"html":{"href":"https://github.com/D-Programming-Language/phobos/pull/3751"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3751"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/issues/3751/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/pulls/3751/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/phobos/statuses/57246edeab73ada4909edc92c080769951b7d25a"}}}}