Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
4ab86cf2
Commit
4ab86cf2
authored
Jun 09, 2011
by
Michal 'vorner' Vaner
Browse files
[trac977] Comments about exceptions
parent
cc5c0e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/acl/check.h
View file @
4ab86cf2
...
...
@@ -52,6 +52,12 @@ public:
* will reimplement it and decide based on the context passed if it
* matches.
*
* The caller should expect this method can throw. The list of exceptions
* isn't restricted, as we don't know what kind of checks will be needed.
* An exception should be considered as it is impossible to check the
* condition. It should lead to either blackholing the packet or returning
* some 500-like error (ServFail).
*
* \param context The thing we are trying to match against this check.
* \return true if the context satisfies the check, false otherwise.
*/
...
...
@@ -133,6 +139,9 @@ public:
* ownership. Therefore the only thing the caller needs to do is to make
* sure this check is not deleted while it's still using the ones from the
* result.
*
* This method must not throw except for the standard allocation exceptions
* to allocate the result.
*/
virtual
Checks
getSubexpressions
()
const
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment