Link more detail to exceptions

Fixes #116.