Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/DeveloperResources/SquidCodingGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ components at build time.

* MUST be used inside .h to wrap relevant code.

## Error reporting

To report an error and abort the current transaction, throw a `TextException("descriptive text", Here())`.
Use `Assure(condition)` to test an invariant and abort the current transaction.
To check system-leve invariants, where a failure needs to terminate Squid, use `xassert(condition)`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To check system-leve invariants, where a failure needs to terminate Squid, use `xassert(condition)`
To check system-level invariants, where a failure needs to terminate Squid, use `xassert(condition)`


## See Also

* [DeveloperResources](/DeveloperResources).