模块 java.sql
 java.sql

类 SQLFeatureNotSupportedException

所有已实现的接口:
Serializable , Iterable<Throwable>

public class SQLFeatureNotSupportedException extends SQLNonTransientException
当 SQLState 类值为 ' 时抛出 SQLException 的子类0A'(值为“零”A)。这表示 JDBC 驱动程序不支持可选的 JDBC 功能。可选的 JDBC 功能可以分为以下几类:
  • 不支持可选功能
  • 不支持可选的重载方法
  • 不支持方法的可选模式。方法的模式是根据作为参数值传递给方法的常量来确定的
自从:
1.6
参见:
  • 构造方法详细信息

    • SQLFeatureNotSupportedException

      public SQLFeatureNotSupportedException()
      构造一个 SQLFeatureNotSupportedException 对象。 reasonSQLState 初始化为 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)
      使用给定的 reasonSQLState 构造一个 SQLFeatureNotSupportedException 对象。 cause 未初始化,随后可能会通过调用 Throwable.initCause(java.lang.Throwable) 方法进行初始化。供应商代码初始化为 0。
      参数:
      reason - 异常的描述
      SQLState - 标识异常的 XOPEN 或 SQL:2003 代码
      自从:
      1.6
    • SQLFeatureNotSupportedException

      public SQLFeatureNotSupportedException(String  reason, String  SQLState, int vendorCode)
      使用给定的 reasonSQLStatevendorCode 构造一个 SQLFeatureNotSupportedException 对象。 cause 未初始化,随后可能会通过调用 Throwable.initCause(java.lang.Throwable) 方法进行初始化。
      参数:
      reason - 异常的描述
      SQLState - 标识异常的 XOPEN 或 SQL:2003 代码
      vendorCode - 数据库供应商特定的异常代码
      自从:
      1.6
    • SQLFeatureNotSupportedException

      public SQLFeatureNotSupportedException(Throwable  cause)
      使用给定的 cause 构造一个 SQLFeatureNotSupportedException 对象。 SQLState 初始化为 null,供应商代码初始化为 0。reason 初始化为 null(如果是 cause==null)或cause.toString()(如果是 cause!=null)。
      参数:
      cause - 此 SQLException 的根本原因(保存以供以后通过 getCause() 方法检索);可能为空,表示原因不存在或未知。
      自从:
      1.6
    • SQLFeatureNotSupportedException

      public SQLFeatureNotSupportedException(String  reason, Throwable  cause)
      使用给定的 reasoncause 构造一个 SQLFeatureNotSupportedException 对象。 SQLState 初始化为 null,供应商代码初始化为 0。
      参数:
      reason - 异常的描述。
      cause - 此 SQLException 的根本原因(保存以供以后通过 getCause() 方法检索);可能为空,表示原因不存在或未知。
      自从:
      1.6
    • SQLFeatureNotSupportedException

      public SQLFeatureNotSupportedException(String  reason, String  SQLState, Throwable  cause)
      使用给定的 reasonSQLStatecause 构造一个 SQLFeatureNotSupportedException 对象。供应商代码初始化为 0。
      参数:
      reason - 异常的描述。
      SQLState - 标识异常的 XOPEN 或 SQL:2003 代码
      cause - (保存以供以后通过 getCause() 方法检索);可能为空,表示原因不存在或未知。
      自从:
      1.6
    • SQLFeatureNotSupportedException

      public SQLFeatureNotSupportedException(String  reason, String  SQLState, int vendorCode, Throwable  cause)
      使用给定的 reasonSQLStatevendorCodecause 构造一个 SQLFeatureNotSupportedException 对象。
      参数:
      reason - 异常的描述
      SQLState - 标识异常的 XOPEN 或 SQL:2003 代码
      vendorCode - 特定于数据库供应商的异常代码
      cause - 此 SQLException 的根本原因(保存以供以后通过 getCause() 方法检索);可能为空,表示原因不存在或未知。
      自从:
      1.6