Adding error passing stuff

this is mTypeName rather than GetTypeName() in every other attribute. I guess this is fine, but there's something to be said for consistency.