moved core constants (and errors) into code genned Core class