add throwf method

Add throwf method for more convenient. How is it?