Throw the error if the class can't be found.