[WebSetting and Vehicle] Error exceptions and format code

Signed-off-by: wangjun <junx.j.wang@intel.com>