-
Notifications
You must be signed in to change notification settings - Fork 2
Feat/filter control blocks #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 14 commits
79cb3f3
17990b6
954478d
1d91795
1388e38
a6b42c9
ee8fd47
a222270
edae807
563adfa
c90292f
a36a245
2c3d1ae
cc9e32f
a84fedf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| #define __CONTROL_BLOCK_ERROR_H_ | ||
|
|
||
| namespace CBXP { | ||
| enum Error { BadControlBlock = 1, BadInclude }; | ||
| enum Error { BadControlBlock = 1, BadInclude, BadFilter }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We may want to consider assigning explicit numbers to these since we now provide a Library interface to C/C++ callers, where the user gets back these return codes and may need to interpret them.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I'm not mistaken, they have explicit numbers assigned already, its just not written in this source code. Default behavior is for enum to start at 0 and assign values increasing by 1, but all the "= 1" does is demonstrate that it should start at 1. Our python unit tests confirm this is the case. |
||
| class CBXPError : public std::exception { | ||
| private: | ||
| Error error_code_; | ||
|
|
@@ -22,6 +22,11 @@ class IncludeError : public CBXPError { | |
| IncludeError() : CBXPError(Error::BadInclude) {} | ||
| }; | ||
|
|
||
| class FilterError : public CBXPError { | ||
| public: | ||
| FilterError() : CBXPError(Error::BadFilter) {} | ||
| }; | ||
|
|
||
| } // namespace CBXP | ||
|
|
||
| #endif | ||
Uh oh!
There was an error while loading. Please reload this page.