mittinatten / freesasa

C-library for calculating Solvent Accessible Surface Areas
http://freesasa.github.io/
MIT License
105 stars 37 forks source link

Error handling #3

Closed mittinatten closed 9 years ago

mittinatten commented 9 years ago
mittinatten commented 9 years ago

Only use errors for input validation (i.e. valid parameters and PDB-files, residue codes, etc.) Use asserts to check for null pointers, invalid orders of calls (i.e. requesting value before calculation is performed, etc.)

mittinatten commented 9 years ago

CLI now does some basic consistency checking of parameters, instead of relying on return values from API. 47bba15718d83d3391cefe5214167d01f498d0ff