tweaked CaughtException constructor