Would be nice to say in exception message what the max size is, and what the desired size was (so user can then make correct call, rather than having to dig in the code to find the constant's value).