Changing exception to use external class name.