implement second signature for addAll
add Error, VirtualMachineError and InternalError
throw InternalError