- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- java.sql.SQLNonTransientException
-
- java.sql.SQLFeatureNotSupportedException
-
- All Implemented Interfaces:
-
Serializable,Iterable<Throwable>
public class SQLFeatureNotSupportedException extends SQLNonTransientException
当SQLState类的值为' 0A '(值为'零'A)时,抛出SQLException的子类。 这表明JDBC驱动程序不支持可选的JDBC功能。 可选的JDBC功能可以归入休闲类别:- 不支持可选功能
- 不支持可选的重载方法
- 不支持方法的可选模式。 方法的模式是基于作为方法的参数值传递的常数确定的
- 从以下版本开始:
- 1.6
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 SQLFeatureNotSupportedException()构造一个SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(String reason)构造一个SQLFeatureNotSupportedException对象与一个给定的reason。SQLFeatureNotSupportedException(String reason, String SQLState)构造一个SQLFeatureNotSupportedException对象,给定的reason和SQLState。SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode)构造一个SQLFeatureNotSupportedException与给定对象reason,SQLState和vendorCode。SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode, Throwable cause)构造一个SQLFeatureNotSupportedException与给定对象reason,SQLState,vendorCode和cause。SQLFeatureNotSupportedException(String reason, String SQLState, Throwable cause)构造一个SQLFeatureNotSupportedException与给定对象reason,SQLState和cause。SQLFeatureNotSupportedException(String reason, Throwable cause)使用给定的reason和cause构造一个SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(Throwable cause)构造一个SQLFeatureNotSupportedException对象与给定的cause。
-
方法摘要
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException()
构造一个SQLFeatureNotSupportedException对象。 的reason,SQLState被初始化为null和供应商代码被初始化为0。cause没有初始化,随后可以通过向一个呼叫进行初始化Throwable.initCause(java.lang.Throwable)方法。- 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason)
使用给定的reason构造一个SQLFeatureNotSupportedException对象。SQLState初始化为null,供应商代码初始化为0.cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。- 参数
-
reason- 异常的描述 - 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason, String SQLState)
构造一个SQLFeatureNotSupportedException对象与给定的reason和SQLState。cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。 供应商代码初始化为0。- 参数
-
reason- 异常的描述 -
SQLState- 标识异常的XOPEN或SQL:2003代码 - 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode)
构造一个SQLFeatureNotSupportedException与给定对象reason,SQLState和vendorCode。cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。- 参数
-
reason- 异常的描述 -
SQLState- 标识异常的XOPEN或SQL:2003代码 -
vendorCode- 数据库供应商特定的异常代码 - 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(Throwable cause)
构造一个SQLFeatureNotSupportedException对象与给定的cause。 该SQLState被初始化为null和供应商代码被初始化为0。reason被初始化为null如果cause==null或cause.toString()如果cause!=null。- 参数
-
cause- 这个SQLException的基本原因(保存以供getCause()方法稍后检索); 可能为空,表示原因不存在或未知。 - 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason, Throwable cause)
使用给定的reason和cause构造一个SQLFeatureNotSupportedException对象。SQLState初始化为null,供应商代码初始化为0。- 参数
-
reason- 异常的描述。 -
cause- 这个SQLException的基本原因(由getCause()方法保存供以后检索); 可能为空,表示原因不存在或未知。 - 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason, String SQLState, Throwable cause)
构造一个SQLFeatureNotSupportedException与给定对象reason,SQLState和cause。 供应商代码初始化为0。- 参数
-
reason- 异常的描述。 -
SQLState- 标识异常的XOPEN或SQL:2003代码 -
cause- (通过getCause()方法保存供以后检索); 可能为空,表示原因不存在或未知。 - 从以下版本开始:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode, Throwable cause)
构造一个SQLFeatureNotSupportedException与给定对象reason,SQLState,vendorCode和cause。- 参数
-
reason- 异常的描述 -
SQLState- 标识异常的XOPEN或SQL:2003代码 -
vendorCode- 数据库供应商特定的异常代码 -
cause- 这个SQLException的基本原因(保存以供getCause()方法稍后检索); 可能为空,表示原因不存在或未知。 - 从以下版本开始:
- 1.6
-
-