mdoube/BoneJ — pull request #16 by tjrantal (2011-10-31 22:55:13+00:00)
Title: Added some exception handling

Hello Michael,

Added exception handling to Stratec reader confirming that the file is big enough (> 1609 bytes) and is in fact a stratec file (i.e. device type string needs to include .typ). Now I'll need to update my synthetic dataset accordingly...

I've never done any type of error handling in my code before (other than the one dictated by the java compiler), so I don't know if the code I've added is sufficient for graceful exiting. Nevertheless, it did work on two sample files testing the above exceptions I added.

Regards,
-Timo