better code, now also possible to set errortitle before setCustomErrorObjType