rvaser / spoa

SIMD partial order alignment tool/library
MIT License
158 stars 32 forks source link

Using exceptions in case of errors rather than calling exit #19

Closed paoloczi closed 5 years ago

paoloczi commented 5 years ago

The code currently writes a message to stderr, then calls exit if an error occurs. Throwing an std::exception instead would be a more robust and standard behavior, as it permits proper destruction of data structures owned by the caller, as well as reacting to the error with application-specific messages or with custom behaviors.

rvaser commented 5 years ago

Fixed in latest commit.