Simple utility to help throwing errors