Assert-style handling of exceptions, modeled after better-assert.