assign class constant as soon as the class is created; if the class initialization fails then undefine that constant