{"action":"created","issue":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/9584","repository_url":"https://api.github.com/repos/chapel-lang/chapel","labels_url":"https://api.github.com/repos/chapel-lang/chapel/issues/9584/labels{/name}","comments_url":"https://api.github.com/repos/chapel-lang/chapel/issues/9584/comments","events_url":"https://api.github.com/repos/chapel-lang/chapel/issues/9584/events","html_url":"https://github.com/chapel-lang/chapel/issues/9584","id":324525049,"number":9584,"title":"Allow messages in new Errors","user":{"login":"buddha314","id":630441,"avatar_url":"https://avatars0.githubusercontent.com/u/630441?v=4","gravatar_id":"","url":"https://api.github.com/users/buddha314","html_url":"https://github.com/buddha314","followers_url":"https://api.github.com/users/buddha314/followers","following_url":"https://api.github.com/users/buddha314/following{/other_user}","gists_url":"https://api.github.com/users/buddha314/gists{/gist_id}","starred_url":"https://api.github.com/users/buddha314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buddha314/subscriptions","organizations_url":"https://api.github.com/users/buddha314/orgs","repos_url":"https://api.github.com/users/buddha314/repos","events_url":"https://api.github.com/users/buddha314/events{/privacy}","received_events_url":"https://api.github.com/users/buddha314/received_events","type":"User","site_admin":false},"labels":[{"id":496591534,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/area:%20Modules","name":"area: Modules","color":"d4c5f9","default":false},{"id":496603397,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/type:%20Feature%20Request","name":"type: Feature Request","color":"e99695","default":false},{"id":520459015,"url":"https://api.github.com/repos/chapel-lang/chapel/labels/user%20issue","name":"user issue","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-18T19:24:15Z","updated_at":"2018-05-18T19:43:07Z","closed_at":null,"author_association":"NONE","body":"Straightforward feature request, allow `Error()` to accept a message which is displayed when the error is thrown."},"comment":{"url":"https://api.github.com/repos/chapel-lang/chapel/issues/comments/390312397","html_url":"https://github.com/chapel-lang/chapel/issues/9584#issuecomment-390312397","issue_url":"https://api.github.com/repos/chapel-lang/chapel/issues/9584","id":390312397,"user":{"login":"buddha314","id":630441,"avatar_url":"https://avatars0.githubusercontent.com/u/630441?v=4","gravatar_id":"","url":"https://api.github.com/users/buddha314","html_url":"https://github.com/buddha314","followers_url":"https://api.github.com/users/buddha314/followers","following_url":"https://api.github.com/users/buddha314/following{/other_user}","gists_url":"https://api.github.com/users/buddha314/gists{/gist_id}","starred_url":"https://api.github.com/users/buddha314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buddha314/subscriptions","organizations_url":"https://api.github.com/users/buddha314/orgs","repos_url":"https://api.github.com/users/buddha314/repos","events_url":"https://api.github.com/users/buddha314/events{/privacy}","received_events_url":"https://api.github.com/users/buddha314/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T19:43:07Z","updated_at":"2018-05-18T19:43:07Z","author_association":"NONE","body":"We have this in NumSuch\r\n\r\n```\r\nclass DimensionMatchError : NumSuchError {\r\n  var msg: string,\r\n      expected: int,\r\n      actual: int;\r\n\r\n  proc init(expected: int, actual:int, msg=\"\") {\r\n    super.init();\r\n    this.complete();\r\n    this.expected = expected;\r\n    this.actual = actual;\r\n    this.msg = msg;\r\n  }\r\n\r\n  proc message() {\r\n    return this.msg + \"Error matching dimensions.  Expected: \" + this.expected + \" Actual: \" + this.actual;\r\n  }\r\n}\r\n```\r\n\r\nSo I'll use that for now, but it feels like a base language issue.  How do the other kids do it?"}}
{"actor":{"display_login":"buddha314"}}