Added C++ equivalent exceptions to Java. Array2DHashset cpp is done,
that took a lot of work.