Remove getMessage() and add a catch for IOOB Exception.