-
Notifications
You must be signed in to change notification settings - Fork 295
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
Fix/508 for code review #554
Conversation
…class for all exceptions.
…xception, including khmer::khmer_file_exception.
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
ok to test |
@iglpdc This looks great. I agree about the other std::exceptions, they need to be changed |
I'm also +1 for consolidating all the exceptions into this new file |
I'm OK with EITHER merging this first, OR waiting for @iglpdc to do more work :). Which would you prefer, Ivan? |
I can move all the exceptions to this new file. I can try to change all the |
On Wed, Jul 23, 2014 at 07:49:21AM -0700, Ivan Gonzalez wrote:
👍 |
exceptions thrown by khmer functions are an instance (or derived from) the latter.
I've moved all the exceptions defined in In any case, take a look. |
LGTM! Can you paste in the checklist and check off as many of the boxes as possible? |
|
@@ -1,3 +1,10 @@ | |||
2014-07-24 Ivan Gonzalez <iglpdc@gmail.com> | |||
|
|||
* All exceptions are now derived from a new base class exception, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be tedious, but we list every file modified in our changelog entries (see below)
@@ -60,6 +58,7 @@ __attribute__((cpychecker_type_object_for_typedef(typename))) | |||
# define MIN( a, b ) (((a) > (b)) ? (b) : (a)) | |||
# define MAX( a, b ) (((a) < (b)) ? (b) : (a)) | |||
|
|||
#include "khmer_exception.hh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Includes should all be at the top together
@iglpdc This is great, thanks! Fix the comments and I'll merge |
Just moved the include's altogether. |
@iglpdc Congratulations on your first commit to the khmer project! Your name will be included in the release notes for the next version and you'll be listed amongst our other contributors in the next software release paper. |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
Awesome! Ivan
|
I have a first version of the code. I've made a new base class for khmer exceptions that derives from std::exception.
A couple of things, though:
khmer.hh
should be moved to the new filekhmer_exceptions.hh
.std::exception
, a few functions throwstd::exception
's instead of khmer derived exceptions. I think this should be changed in most cases.