Adding use of Exceptions to code gen templates after
bc98baf81563cc92d01f23419138343b8c8a0959
refs #44
Minor changes to formatting after Eclipse auto-format