AutosarC++18_10-A15.4.5¶
Checked exceptions that could be thrown from a function shall be specified together with the function declaration and they shall be identical in all function declarations and for all its overriders
Required inputs: IR, StaticSemanticAnalysis
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
differing_documented |
Documented exceptions differ from overridden method. |
None |
False |
document_exception |
Document checked exception {} using {}. |
None |
False |
superfluous_documented |
Documented exceptions {} probably never thrown. |
None |
False |
Options¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
autosar_exception_model¶
autosar_exception_model : str = '18_03'
exclude_exception_base_classes¶
exclude_exception_base_classes : set[bauhaus.analysis.config.QualifiedName] = set()
ignore_definitions_if_declaration_documented¶
ignore_definitions_if_declaration_documented : bool = False
include_template_instances¶
include_template_instances : bool = False
match_qualified_name¶
match_qualified_name : bool = True
throw_marker¶
throw_marker : str = '@throw'