第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

BusinessException:null 這是為什么》求解

在數(shù)據(jù)校驗(yàn)的時(shí)候出現(xiàn)異常

BusinessException:null

數(shù)據(jù)正確的時(shí)候程序是完全正確的

正在回答

1 回答

BusinessException:null?這個(gè)只不過(guò)是一個(gè)封裝的異常信息。

因?yàn)?public class BusinessException extends Exception :這說(shuō)明了你的查詢(xún)是沒(méi)有錯(cuò)的,只不過(guò)是數(shù)據(jù)庫(kù)沒(méi)有對(duì)應(yīng)的數(shù)據(jù)報(bào)了一個(gè)這樣的錯(cuò)誤【java.lang.NullPointerException: null】空指針異常。

if (ex instanceof BusinessException) {BusinessException?businessException?=?(BusinessException)?ex;

把NullPointerException?強(qiáng)轉(zhuǎn)成了BusinessException?格式的異常所以就是下面這個(gè)樣子了:

java.lang.NullPointerException: null? ==?BusinessException:null





0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

BusinessException:null 這是為什么》求解

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)