public static FormulaError forInt(int type) throws IllegalArgumentException {FormulaError err = imap.get(type);if(err == null) err = bmap.get((byte)type);if(err == null) throw new IllegalArgumentException("Unknown error type: " + type);return err;}
public static FormulaError ForInt(int type){if (imap.ContainsKey(type))return imap[type];if (bmap.ContainsKey((byte)type))return bmap[(byte)type];throw new ArgumentException("Unknown error type: " + type);}