Skip to main content

error_unexpected_behavior

Emits unexpected behavior error.

def error_unexpected_behavior(
detail: str,
api: CheckerPluginInterface | SemanticAnalyzerPluginInterface,
context: Context
) - > None

Emits unexpected behavior error.

Parameters

NameTypeDescription
detailstrA specific description of the unexpected state or logic failure encountered by the plugin
api`CheckerPluginInterfaceSemanticAnalyzerPluginInterface`
contextContextThe AST context or node where the unexpected behavior was detected, used for error positioning

Returns

TypeDescription
NoneNothing is returned; the function performs a side effect of reporting an error through the plugin interface