File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
python/ql/src/semmle/python Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,13 @@ class ErrorInfoSource extends DataFlow::Node {
308
308
309
309
/** Provides a class for modeling new sources of error information, say via APIs. */
310
310
module ErrorInfoSource {
311
+ /**
312
+ * A data-flow node that carries information about an error. Such information should
313
+ * rarely be exposed directly to the user.
314
+ *
315
+ * Extend this class to model new APIs. If you want to refine existing API models,
316
+ * extend `ErrorInfoSource` instead.
317
+ */
311
318
abstract class Range extends DataFlow:: Node { }
312
319
}
313
320
@@ -325,6 +332,12 @@ class ExceptionSource extends ErrorInfoSource::Range {
325
332
326
333
/** Provides a class for modeling new sources of exceptions, say via APIs. */
327
334
module ExceptionSource {
335
+ /**
336
+ * A data-flow node that represents the creation or introduction of an exception.
337
+ *
338
+ * Extend this class to model new APIs. If you want to refine existing API models,
339
+ * extend `ExceptionSource` instead.
340
+ */
328
341
abstract class Range extends DataFlow:: Node { }
329
342
}
330
343
You can’t perform that action at this time.
0 commit comments