java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
java.sql.SQLNonTransientException
java.sql.SQLFeatureNotSupportedException
- 所有已实现的接口:
-
Serializable,Iterable<Throwable>
当 SQLState 类值为 '0A' 时抛出的
SQLException 的子类(该值为 'zero' A)。这表示 JDBC 驱动程序不支持可选的 JDBC 功能。可选的 JDBC 功能可以分为以下几类:
- 不支持可选功能
- 不支持可选的重载方法
- 不支持方法的可选模式。方法的模式是根据作为参数值传递给方法的常量确定的
- 自从:
- 1.6
- 参见:
-
Constructor Summary
ConstructorsConstructorDescription构造一个SQLFeatureNotSupportedException对象。构造一个带有给定reason的SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(String reason, String SQLState) 构造一个带有给定reason和SQLState的SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode) 构造一个带有给定reason、SQLState和vendorCode的SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode, Throwable cause) 构造一个带有给定reason、SQLState、vendorCode和cause的SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(String reason, String SQLState, Throwable cause) 构造一个带有给定reason、SQLState和cause的SQLFeatureNotSupportedException对象。SQLFeatureNotSupportedException(String reason, Throwable cause) 构造一个带有给定reason和cause的SQLFeatureNotSupportedException对象。构造一个带有给定cause的SQLFeatureNotSupportedException对象。 -
Method Summary
Methods declared in class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods declared in interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException()构造一个SQLFeatureNotSupportedException对象。reason、SQLState被初始化为null,vendor code 被初始化为 0。cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。- 自从:
- 1.6
-
SQLFeatureNotSupportedException
构造一个带有给定reason的SQLFeatureNotSupportedException对象。SQLState被初始化为null,vendor code 被初始化为 0。cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。- 参数:
-
reason- 异常的描述 - 自从:
- 1.6
-
SQLFeatureNotSupportedException
构造一个带有给定reason和SQLState的SQLFeatureNotSupportedException对象。cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。 vendor code 被初始化为 0。- 参数:
-
reason- 异常的描述 -
SQLState- 用于标识异常的 XOPEN 或 SQL:2003 代码 - 自从:
- 1.6
-
SQLFeatureNotSupportedException
构造一个带有给定reason、SQLState和vendorCode的SQLFeatureNotSupportedException对象。cause未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)方法进行初始化。- 参数:
-
reason- 异常的描述 -
SQLState- 用于标识异常的 XOPEN 或 SQL:2003 代码 -
vendorCode- 数据库供应商特定的异常代码 - 自从:
- 1.6
-
SQLFeatureNotSupportedException
构造一个带有给定cause的SQLFeatureNotSupportedException对象。SQLState被初始化为null,vendor code 被初始化为 0。 如果cause==null,则reason被初始化为null,如果cause!=null,则reason被初始化为cause.toString()。- 参数:
-
cause- 此SQLException的根本原因(保存以便稍后通过getCause()方法检索);可能为 null,表示原因不存在或未知。 - 自从:
- 1.6
-
SQLFeatureNotSupportedException
构造一个带有给定reason和cause的SQLFeatureNotSupportedException对象。SQLState被初始化为null,vendor code 被初始化为 0。- 参数:
-
reason- 异常的描述。 -
cause- 此SQLException的根本原因(保存以便稍后通过getCause()方法检索);可能为 null,表示原因不存在或未知。 - 自从:
- 1.6
-
SQLFeatureNotSupportedException
构造一个带有给定reason、SQLState和cause的SQLFeatureNotSupportedException对象。 vendor code 被初始化为 0。- 参数:
-
reason- 异常的描述。 -
SQLState- 用于标识异常的 XOPEN 或 SQL:2003 代码 -
cause- (保存以便稍后通过getCause()方法检索);可能为 null,表示原因不存在或未知。 - 自从:
- 1.6
-
SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(String reason, String SQLState, int vendorCode, Throwable cause) 构造一个带有给定reason、SQLState、vendorCode和cause的SQLFeatureNotSupportedException对象。- 参数:
-
reason- 异常的描述 -
SQLState- 用于标识异常的 XOPEN 或 SQL:2003 代码 -
vendorCode- 数据库供应商特定的异常代码 -
cause- 此SQLException的根本原因(保存以便稍后通过getCause()方法检索);可能为 null,表示原因不存在或未知。 - 自从:
- 1.6
-