refactor node creation and subnode adder method signatures

Remove the exception declaration from node constructor, subnode adder
and subnode factory methods where it is not needed.

Change-Id: Iba32c9c230c85607526e05284b824b34fc5f11c5
1 file changed