public InvalidInputException(Object o) { if (o instanceof InvalidInputException) { InvalidInputException iie = (InvalidInputException) o; errors = iie.errors; genericErrors = iie.genericErrors; } else if (o instanceof Map) { errors = (Map) o; } else if (o instanceof String[]) { String[] stringMap = (String[]) o; int length = stringMap.length; String name = null;  for (int i = 0; i < length; i++) { if ((i % 2) == 0) { name = stringMap[i]; } else { addError(name, stringMap[i]); } } } else { addError(o.toString()); }
public InvalidInputException() { super();
    public InvalidInputException(Object o) {        if (o instanceof InvalidInputException) {            InvalidInputException iie = (InvalidInputException) o;            errors = iie.errors;            genericErrors = iie.genericErrors;        } else if (o instanceof Map) {            errors = (Map) o;        } else if (o instanceof String[]) {            String[] stringMap = (String[]) o;            int length = stringMap.length;            String name = null;            for (int i = 0; i < length; i++) {                if ((i % 2) == 0) {                    name = stringMap[i];                } else {                    addError(name, stringMap[i]);                }            }        } else {            addError(o.toString());        }    }