{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4351","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4351/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4351/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4351/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4351","id":89541478,"number":4351,"title":"[Feature request] List of all compiler exceptions in cli-docs","user":{"login":"fzzr-","id":888526,"avatar_url":"https://avatars.githubusercontent.com/u/888526?v=3","gravatar_id":"","url":"https://api.github.com/users/fzzr-","html_url":"https://github.com/fzzr-","followers_url":"https://api.github.com/users/fzzr-/followers","following_url":"https://api.github.com/users/fzzr-/following{/other_user}","gists_url":"https://api.github.com/users/fzzr-/gists{/gist_id}","starred_url":"https://api.github.com/users/fzzr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fzzr-/subscriptions","organizations_url":"https://api.github.com/users/fzzr-/orgs","repos_url":"https://api.github.com/users/fzzr-/repos","events_url":"https://api.github.com/users/fzzr-/events{/privacy}","received_events_url":"https://api.github.com/users/fzzr-/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-19T11:29:32Z","updated_at":"2016-01-17T18:11:57Z","closed_at":"2016-01-17T18:11:57Z","body":"Will be great if we will have a complete list of all possible exceptions of compiler (e.g.: [1], [2], [3], [4]).\r\n\r\n### Exceptions\r\n\r\nIt need in documentation via `$ haxe --help-exceptions` -> returns parsable list like this:\r\n\r\n```\r\ntext of error (pattern)                                             | [list-of-keywords] | comment about what & when it can be thrown\r\nThe macro accessor is not allowed for field resolve                 | macro              | description\r\nCatch type must be a class, an enum or Dynamic                      | all                | description about try-catch-block\r\nLocal variable {name} is preventing usage of this type here         | all                | comment / description\r\nField {name} cannot be called directly because it has no expression | ...                | ...\r\nSome static-target-only error                                       | cpp, flash         | comment / description\r\n```\r\nHere `[list-of-keywords]` is a list of keywords like target-platforms or when/where we can get exception. For example possible values can be `macro`, `cpp`, `neko`, `java`,..\r\nIt will be cool for filtering errors and work with it in IDEs.\r\n\r\n### Warnings\r\n\r\nAlso list of warnings (e.g.: [about loop](https://github.com/HaxeFoundation/haxe/blob/development/typer.ml#L4194)) too:\r\n`$ haxe --help-warnings`\r\n```\r\ntext of warning (pattern)                         | [list-of-keywords] | comment about what & when it can be thrown\r\nWarning : maybe loop in static generation of {tp} | all, macro         | ...\r\n```\r\n\r\n- - -\r\n\r\nAlso will be cool if std contains classes/enums/typedefs what describing macro-state-exceptions.\r\n\r\n\r\n[1]: https://github.com/HaxeFoundation/haxe/blob/development/typer.ml#L1428\r\n[2]: https://github.com/HaxeFoundation/haxe/blob/development/typer.ml#L3293\r\n[3]: https://github.com/HaxeFoundation/haxe/blob/development/typer.ml#L3305\r\n[4]: https://github.com/HaxeFoundation/haxe/blob/development/typer.ml#L3313"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/172359843","html_url":"https://github.com/HaxeFoundation/haxe/issues/4351#issuecomment-172359843","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4351","id":172359843,"user":{"login":"Simn","id":634365,"avatar_url":"https://avatars.githubusercontent.com/u/634365?v=3","gravatar_id":"","url":"https://api.github.com/users/Simn","html_url":"https://github.com/Simn","followers_url":"https://api.github.com/users/Simn/followers","following_url":"https://api.github.com/users/Simn/following{/other_user}","gists_url":"https://api.github.com/users/Simn/gists{/gist_id}","starred_url":"https://api.github.com/users/Simn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simn/subscriptions","organizations_url":"https://api.github.com/users/Simn/orgs","repos_url":"https://api.github.com/users/Simn/repos","events_url":"https://api.github.com/users/Simn/events{/privacy}","received_events_url":"https://api.github.com/users/Simn/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T18:11:57Z","updated_at":"2016-01-17T18:11:57Z","body":"I'll go ahead and close this because while it's \"nice to have\" it's also pretty much \"not gonna happen\"."}}