org.apache.commons.dbcp
クラス DbcpException

java.lang.Object
  拡張java.lang.Throwable
      拡張java.lang.Exception
          拡張java.lang.RuntimeException
              拡張org.apache.commons.dbcp.DbcpException
すべての実装インタフェース:
Serializable

public class DbcpException
extends RuntimeException

JDK 1.4 の"元となる原因"のパターンを(1.4の実行環境を必要とせずに)使用して SQLException をラップする RuntimeException のサブクラスです。

Subclass of RuntimeException that can be used to wrap a SQLException using the "root cause" pattern of JDK 1.4 exceptions, but without requiring a 1.4 runtime environment.

バージョン:
$Revision: 1.1.1.1 $ $Date: 2004/02/13 10:02:03 $
作成者:
Jonathan Fuerth, Dan Fraser
関連項目:
直列化された形式
翻訳者:
日置 聡
翻訳状況:
初稿(校正者募集中)
翻訳更新日:
2003/08/31

フィールドの概要
protected  Throwable cause
          この例外の元となる原因(一般的に SQLException ですが必須ではありません)。
 
コンストラクタの概要
DbcpException()
          詳細メッセージ null を指定し、新たな実行時例外を生成します。
DbcpException(String message)
          詳細メッセージを指定して新たな実行時例外を生成します。
DbcpException(String message, Throwable cause)
          詳細メッセージと原因となる例外を指定して新たな実行時例外を生成します。
DbcpException(Throwable cause)
          原因となる例外を指定して新たな実行時例外を生成します。
 
メソッドの概要
 Throwable getCause()
          この例外の元となる原因を返します(あれば)。
 
クラス java.lang.Throwable から継承したメソッド
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

cause

protected Throwable cause
この例外の元となる原因(一般的に SQLException ですが必須ではありません)。
The root cause of this exception (typically an SQLException but this is not required).

コンストラクタの詳細

DbcpException

public DbcpException()
詳細メッセージ null を指定し、新たな実行時例外を生成します。
Construct a new runtime exception with null as its detail message.


DbcpException

public DbcpException(String message)
詳細メッセージを指定して新たな実行時例外を生成します。
Construct a new runtime exception with the specified detail message.

パラメータ:
message - この例外の詳細メッセージ
The detail message for this exception

DbcpException

public DbcpException(String message,
                     Throwable cause)
詳細メッセージと原因となる例外を指定して新たな実行時例外を生成します。
Construct a new runtime exception with the specified detail message and cause.

パラメータ:
message - この例外の詳細メッセージ
The detail message for this exception
cause - この例外の元となる原因
The root cause for this exception

DbcpException

public DbcpException(Throwable cause)
原因となる例外を指定して新たな実行時例外を生成します。 詳細メッセージは (cause == null ? null : cause.toString()) によって設定されます。
Construct a new runtime exception with the specified cause and a detail message of (cause == null ? null : cause.toString()).

パラメータ:
cause - この例外の元となる原因
The root cause for this exception
メソッドの詳細

getCause

public Throwable getCause()
この例外の元となる原因を返します(あれば)。
Return the root cause of this exception (if any).



このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation