G-Node / nix

Neuroscience information exchange format
https://readthedocs.org/projects/nixio/
Other
67 stars 36 forks source link

[File] throw nix::outOfBounds exception if invalid index is used #507

Closed jgrewe closed 9 years ago

jgrewe commented 9 years ago

solves issue #506

actually I introduce a slight inconsistency here. So far the getXYZ(index) methods return none (e.g. in Block) when an invalid index is given. I do not really like this and would prefer the exception. If you disagree I am happy to change the behaviour in File to match the Block-like behaviour and remove the exception.