Replaced T_error token with exception.