Syntax Lookup
Enter some language construct you want to know more about.
This is the @doesNotRaise decorator.
Deprecated since v12.0.0. Use the @doesNotThrow decorator instead.
This decorator is an alias for the @does_not_throw decorator.
@doesNotRaise is used to override the reanalyze's exception analysis and state that an expression does not throw any exceptions, even though the analysis reports otherwise. This can happen for example in the case of array access where the analysis does not perform range checks but takes a conservative stance that any access could potentially throw.