A student estimated a mass to be 250 grams but upon carefully measuring it, he found the actual mass to be 240 grams. What is the percent of error?