The message could be a little more descriptive or just use the Throwable constructor to keep the functionality consistent with the previous version.