throw error if constructor isn't found