mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Model rest_framework.exceptions.APIException
Only models the subclasses of `APIException` that share the same interface as `APIException` itself with regard to the `getBody` predicate.
This commit is contained in:
committed by
Rasmus Wriedt Larsen
parent
1f66659ff2
commit
43fe9ca31d
@@ -445,6 +445,12 @@ class DjangoFileField extends FindSubclassesSpec {
|
||||
}
|
||||
}
|
||||
|
||||
class RestFrameworkApiException extends FindSubclassesSpec {
|
||||
RestFrameworkApiException() { this = "rest_framework.exceptions.APIException~Subclass" }
|
||||
|
||||
override API::Node getAlreadyModeledClass() { result = RestFramework::ApiException::classRef() }
|
||||
}
|
||||
|
||||
bindingset[fullyQualified]
|
||||
predicate fullyQualifiedToYamlFormat(string fullyQualified, string type2, string path) {
|
||||
exists(int firstDot | firstDot = fullyQualified.indexOf(".", 0, 0) |
|
||||
|
||||
Reference in New Issue
Block a user