CodeQL library for Java/Kotlin
codeql/java-all 0.8.9 (changelog, source)

Member predicate Diagnostic::getSeverity

Gets the severity of the message.

For Java, this ranges from 1 to 8: 1=warning(low) 2=warning(normal) 3=warning(high) 4=error(low) Minor extractor errors, with minimal impact on analysis 5=error(normal) Most extractor errors, with local impact on analysis 6=error(high) Errors from the frontend 7=error(severe) Severe extractor errors affecting a single source file 8=error(global) Severe extractor errors likely to affect multiple source files For Kotlin, only the “normal” warning and error severities are used.

int getSeverity()