Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Represent exceptions in code flows #265

Open
ghost opened this issue Aug 30, 2016 · 0 comments
Open

Represent exceptions in code flows #265

ghost opened this issue Aug 30, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 30, 2016

Enable SARIF to represent exceptions in code flows, perhaps by introducing new values for annotatedCodeLocation.kind. Take into account at least the following issues:

  • An exception may be thrown implicitly (for example, a ThreadAbortException, without a throw statement appearing in the source code.
  • An exception may be thrown explicitly.
  • An exception may be typed (e.g., throw new Blah()) and the thrown object may be parameterized (e.g. ,throw new Blah(42)).
  • An exception may satisfy an exception filter.
  • An exception may be caught by a catch clause.
  • An exception may be rethrown (bare throw statement in a catch clause.
  • An exception may cause program termination (for example, if thrown from a C++ destructor).
  • A finally clause may execute as control leaves a function which did not catch an exception (or, for that matter, if the function did catch the exception).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants