Check the errorcode property to determine why the socket error occurred 檢查errorcode屬性以確定發(fā)生該套接字錯(cuò)誤的原因。
Check the errorcode property of the exception to determine the hresult returned by the com object 檢查該異常的errorcode屬性,以確定com對(duì)象返回的hresult
Notice that , in addition to the columns from the source data file , three new columns are present : errorcode , errorcolumn , and errordescription 請(qǐng)注意,除了源數(shù)據(jù)文件中的列以外,還存在三個(gè)新列: errorcode 、 errorcolumn和errordescription 。
Notice that all the rows in the file contain the unmatched currencyid value of bad , the errorcode value of - 1071607778 , the errorcolumn value of 0 , and the errordescription value " row yielded no match during lookup " 請(qǐng)注意,文件中的所有行都包含不匹配的currencyid值bad 、 errorcode值- 1071607778 、 errorcolumn值0以及errordescription值“在查找期間行沒有生成任何匹配項(xiàng)” 。
Pdo will simply set the error code for you to inspect using the errorcode and errorinfo methods on both the statement and database objects ; if the error resulted from a call on a statement object , you would invoke the errorcode or errorinfo method on that object Pdo將只設(shè)置錯(cuò)誤代碼,以通過errorcode ( )和errorinfo ( )方法對(duì)語句和數(shù)據(jù)庫(kù)對(duì)象進(jìn)行檢查。如果錯(cuò)誤是由于對(duì)語句對(duì)象的調(diào)用而產(chǎn)生的,那么可以在那個(gè)對(duì)象上調(diào)用errorcode ( )或errorinfo ( )方法。