|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
public class SQLException
데이타베이스 액세스 에러 또는 그 외의 에러에 관한 정보를 제공하는 예외입니다.
각 SQLException 는 다음과 같은 정보를 제공합니다.
getMesasge 메소드에 의해 사용할 수 있습니다.
getSQLStateType 에 의해, 드라이버가 XOPEN 의 형태와 SQL:2003 의 형태의 어느 쪽을 돌려주는지를 확인할 수 있습니다.
SQLException 에 대해서 존재하는 경우).
| 생성자 의 개요 | |
|---|---|
SQLException ()
SQLException 객체를 구축합니다. |
|
SQLException (String reason)
지정의 reason 로 SQLException 객체를 구축합니다. |
|
SQLException (String reason,
String SQLState)
지정의 reason 및 SQLState 로 SQLException 객체를 구축합니다. |
|
SQLException (String reason,
String SQLState,
int vendorCode)
지정의 reason,SQLState, 및 vendorCode 로 SQLException 객체를 구축합니다. |
|
SQLException (String reason,
String sqlState,
int vendorCode,
Throwable cause)
지정의 reason,SQLState,vendorCode, 및 cause 로 SQLException 객체를 구축합니다. |
|
SQLException (String reason,
String sqlState,
Throwable cause)
지정의 reason,SQLState, 및 cause 로 SQLException 객체를 구축합니다. |
|
SQLException (String reason,
Throwable cause)
지정의 reason 및 cause 로 SQLException 객체를 구축합니다. |
|
SQLException (Throwable cause)
지정의 cause 로 SQLException 객체를 구축합니다. |
|
| 메소드의 개요 | |
|---|---|
int |
getErrorCode ()
이 SQLException 객체의 벤더 고유의 예외 코드를 가져옵니다. |
SQLException |
getNextException ()
setNextException(SQLException ex)에 의해 이 SQLException 객체에 체인 된 예외를 가져옵니다. |
String |
getSQLState ()
이 SQLException 객체의 SQLState 를 가져옵니다. |
Iterator <Throwable > |
iterator ()
체인 된 SQLException 에 대한 반복자를 돌려줍니다. |
void |
setNextException (SQLException ex)
체인의 마지막에 SQLException 객체를 추가합니다. |
| 클래스 java.lang. Throwable 로부터 상속된 메소드 |
|---|
fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
| 생성자 의 상세 |
|---|
public SQLException(String reason,
String SQLState,
int vendorCode)
reason,SQLState, 및 vendorCode 로 SQLException 객체를 구축합니다.
cause 는 초기화되지 않습니다. Throwable.initCause(java.lang.Throwable) 메소드를 호출하는 것에 의해, 나중에 이것을 초기화할 수 있습니다.
reason - 예외의 설명SQLState - 예외를 식별하는 XOPEN 코드 또는 SQL:2003 코드vendorCode - 데이타베이스 벤더 고유의 예외 코드
public SQLException(String reason,
String SQLState)
reason 및 SQLState 로 SQLException 객체를 구축합니다.
cause 는 초기화되지 않습니다. Throwable.initCause(java.lang.Throwable) 메소드를 호출하는 것에 의해, 나중에 이것을 초기화할 수 있습니다. 벤더 코드는 0 에 초기화됩니다.
reason - 예외의 설명SQLState - 예외를 식별하는 XOPEN 코드 또는 SQL:2003 코드public SQLException(String reason)
reason 로 SQLException 객체를 구축합니다. SQLState 는 null 에 초기화되어 벤더 코드는 0 에 초기화됩니다.
cause 는 초기화되지 않습니다. Throwable.initCause(java.lang.Throwable) 메소드를 호출하는 것에 의해, 나중에 이것을 초기화할 수 있습니다.
reason - 예외의 설명public SQLException()
SQLException 객체를 구축합니다. reason 및 SQLState 는 null 에 초기화되어 벤더 코드는 0 에 초기화됩니다.
cause 는 초기화되지 않습니다. Throwable.initCause(java.lang.Throwable) 메소드를 호출하는 것에 의해, 나중에 이것을 초기화할 수 있습니다.
public SQLException(Throwable cause)
cause 로 SQLException 객체를 구축합니다. SQLState 는 null 에 초기화되어 벤더 코드는 0 에 초기화됩니다. reason 는 cause==null 의 경우에 null 에 초기화되어cause! =null 의 경우에 cause.toString() 에 초기화됩니다.
cause - 이 SQLException 의 기가 되는 원인 (나중에 getCause() 메소드로 취득하기 위해서 보존된다). null 치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타내는
public SQLException(String reason,
Throwable cause)
reason 및 cause 로 SQLException 객체를 구축합니다. SQLState 는 null 에 초기화되어 벤더 코드는 0 에 초기화됩니다.
reason - 예외의 설명cause - 이 SQLException 의 기가 되는 원인 (나중에 getCause() 메소드로 취득하기 위해서 보존된다). null 치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타내는
public SQLException(String reason,
String sqlState,
Throwable cause)
reason,SQLState, 및 cause 로 SQLException 객체를 구축합니다. 벤더 코드는 0 에 초기화됩니다.
reason - 예외의 설명sqlState - 예외를 식별하는 XOPEN 코드 또는 SQL:2003 코드cause - 이 SQLException 의 기가 되는 원인 (나중에 getCause() 메소드로 취득하기 위해서 보존된다). null 치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타내는
public SQLException(String reason,
String sqlState,
int vendorCode,
Throwable cause)
reason,SQLState,vendorCode, 및 cause 로 SQLException 객체를 구축합니다.
reason - 예외의 설명sqlState - 예외를 식별하는 XOPEN 코드 또는 SQL:2003 코드vendorCode - 데이타베이스 벤더 고유의 예외 코드cause - 이 SQLException 의 기가 되는 원인 (나중에 getCause() 메소드로 취득하기 위해서 보존된다). null 치가 허가되고 있어 원인이 존재하지 않는가 불명한 것을 나타내는| 메소드의 상세 |
|---|
public String getSQLState()
SQLException 객체의 SQLState 를 가져옵니다.
public int getErrorCode()
SQLException 객체의 벤더 고유의 예외 코드를 가져옵니다.
public SQLException getNextException()
SQLException 객체에 체인 된 예외를 가져옵니다.
SQLException 객체. 없는 경우는 nullsetNextException(java.sql.SQLException) public void setNextException(SQLException ex)
SQLException 객체를 추가합니다.
ex - SQLException 체인의 마지막에 추가되는 새로운 예외getNextException() public Iterator <Throwable > iterator()
Iterable <Throwable > 내의 iterator
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.