Skip to main content

ActionSubError

Methods available on StarlarkActionSubError to help with testing the error handler implementation

ActionSubError.category

ActionSubError.category: str

A more granular category for the action error.


ActionSubError.col

ActionSubError.col: None | int

Column number for the error location.


ActionSubError.end_col

ActionSubError.end_col: None | int

End column number for error ranges.


ActionSubError.end_lnum

ActionSubError.end_lnum: None | int

End line number for multi-line error spans.


ActionSubError.error_number

ActionSubError.error_number: None | int

Numeric error code (e.g., 404, 500).


ActionSubError.error_type

ActionSubError.error_type: None | str

Type of error (e.g., error, warning, info).


ActionSubError.file

ActionSubError.file: None | str

File path for the error location.


ActionSubError.lnum

ActionSubError.lnum: None | int

Line number for the error location.


ActionSubError.locations

ActionSubError.locations: None | list[ActionErrorLocation]

File/line information for the error, useful for external integration to highlight where the error resides


ActionSubError.message

ActionSubError.message: None | str

An optional message to be displayed with the error, used to provide additoinal context