public static IllegalArgumentException providedKeyValuesMustBeAMultipleOfTwo() {
            return new IllegalArgumentException("The provided key/value array length must be a multiple of two");
        }
Common exceptions to use with an element.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Element.java