Make errors accessable
Merge pull request #7 from ZeissS/add-errors

Make errors accessable