showErrorMessage now manages exceptions directly.