public class Error extends Object
| 构造器和说明 |
|---|
Error() |
public static SQLException createSQLException(String reason)
public static SQLException createSQLException(String reason, String sqlState)
public static SQLException createSQLException(String reason, String sqlState, int vendorCode)
public static SQLException createSQLException(String reason, String sqlState, int vendorCode, String errType)
public static SQLClientInfoException createClientInfoException(String clientName, String val, ClientInfoStatus status)
public static SQLClientInfoException createClientInfoException(String errorReason, int errorCode)
public static BatchUpdateException createBatchUpdateException(int[] updateCounts)
public static BatchUpdateException createBatchUpdateException(String reason, int[] updateCounts)
public static BatchUpdateException createBatchUpdateException(String reason, String sqlState, int[] updateCounts)
public static BatchUpdateException createBatchUpdateException(String reason, String sqlState, int vendorCode, int[] updateCounts)
public static InterruptedException createInterruptedException(String reason)
public static SQLClientInfoException createSQLClientInfoException(String reason, int vendorCode, String clientKey)
reason - 异常原因vendorCode - 异常编码clientKey - Client属性名public static XAException createXAException(String reason, int vendorCode)
reason - 异常原因(带虚谷错误号)vendorCode - 虚谷错误号public static XAException createXAException(String reason)
reason - 异常原因(带虚谷错误号)public static XAException createXAExceptionFromSQLException(SQLException sqlException)
sqlException - SQL异常对象Copyright © 2025. All rights reserved.