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(byte type){if (bmap.ContainsKey(type))return bmap[type];throw new ArgumentException("Unknown error type: " + type);}
