Allow action.message to be defined whenever calling the function returned from getErrorDialog.