Make error handling a hidden struct

THIS IS AN INCOMPATIBLE CHANGE!

Closes #90