Throw error on unregistered constructor