Raising errors with template errors.