Generate exception message lazily