createErased

Creates a node through this token's typed creation hook and verifies the returned class.

The returned node is detached and becomes runtime-owned only after successful creation and validation.

Return

a detached node of the declared node class.

Parameters

element

the description to create from.

Throws

when the description is not owned by this token or has the wrong class. It is also thrown when the created node has the wrong class.

when the node creation hook fails.