error_unexpected_behavior
Emits unexpected behavior error.
def error_unexpected_behavior(
detail: str,
api: CheckerPluginInterface | SemanticAnalyzerPluginInterface,
context: Context
) - > None
Emits unexpected behavior error.
Parameters
| Name | Type | Description |
|---|---|---|
| detail | str | A specific description of the unexpected state or logic failure encountered by the plugin |
| api | `CheckerPluginInterface | SemanticAnalyzerPluginInterface` |
| context | Context | The AST context or node where the unexpected behavior was detected, used for error positioning |
Returns
| Type | Description |
|---|---|
None | Nothing is returned; the function performs a side effect of reporting an error through the plugin interface |