Library throws Exception on error again.
minor fix: coding standards (tabs for spaces, deleted empty line)