Add script to convert error consts into Java enum