added semantic error exception.