|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.sql.SQLException
public class SQLException
µ¥ÀÌŸº£À̽º ¾×¼¼½º ¿¡·¯ ¶Ç´Â ±× ¿ÜÀÇ ¿¡·¯¿¡ °üÇÑ Á¤º¸¸¦ Á¦°øÇÏ´Â ¿¹¿ÜÀÔ´Ï´Ù.
°¢ SQLException´Â ´ÙÀ½°ú °°Àº Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù.
getMesage ¸Þ¼µå¿¡ ÀÇÇØ »ç¿ëÇÒ ¼ö ÀÖ´Ù
DatabaseMetaData ¸Þ¼µå getSQLStateType¿¡
ÀÇÇØ µå¶óÀ̹ö°¡ XOPEN
ÇüÅÂ¿Í SQL 99
ÇüÅÂÀÇ ¾î´À ÂÊÀ» µ¹·ÁÁÖ´ÂÁö¸¦ È®ÀÎÇÒ ¼ö ÀÖ´Ù
| »ý¼ºÀÚ °³¿ä | |
|---|---|
SQLException ()
SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
SQLException (String reason)
ÁöÁ¤µÈ reason ·Î SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
SQLException (String reason,
String SQLState)
ÁöÁ¤µÈ reason¿Í SQLState ·Î SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
SQLException (String reason,
String SQLState,
int vendorCode)
¿ÏÀü ÁöÁ¤ÀÇ SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
int |
getErrorCode ()
ÀÌ SQLException °´Ã¼ÀÇ º¥´õ °íÀ¯ÀÇ ¿¹¿Ü Äڵ带 ÃëµæÇÕ´Ï´Ù. |
SQLException |
getNextException ()
ÀÌ SQLException °´Ã¼¿¡ üÀÎ µÈ ¿¹¿Ü¸¦ ÃëµæÇÕ´Ï´Ù. |
String |
getSQLState ()
ÀÌ SQLException °´Ã¼ÀÇ SQLState¸¦ ÃëµæÇÕ´Ï´Ù. |
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)
SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
reason - ¿¹¿ÜÀÇ ¼³¸íSQLState - ¿¹¿Ü¸¦ ½Äº°ÇÏ´Â XOPEN ÄÚµå ¶Ç´Â SQL 99 ÄÚµåvendorCode - µ¥ÀÌŸº£À̽º º¥´õ °íÀ¯ÀÇ ¿¹¿Ü ÄÚµå
public SQLException(String reason,
String SQLState)
SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. vendorCode ÇʵåÀÇ µðÆúÆ®´Â 0 À¸·Î ¼³Á¤µË´Ï´Ù.
reason - ¿¹¿ÜÀÇ ¼³¸íSQLState - ¿¹¿Ü¸¦ ½Äº°ÇÏ´Â XOPEN ÄÚµå ¶Ç´Â SQL 99 ÄÚµåpublic SQLException(String reason)
SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. SQLState ÇʵåÀÇ µðÆúÆ®´Â null, vendorCode ÇʵåÀÇ µðÆúÆ®´Â 0¿¡ °¢°¢ ¼³Á¤µË´Ï´Ù.
reason - ¿¹¿ÜÀÇ ¼³¸ípublic SQLException()
SQLException °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. reason ÇʵåÀÇ µðÆúÆ®´Â null, SQLState ÇʵåÀÇ µðÆúÆ®´Â null, vendorCode ÇʵåÀÇ µðÆúÆ®´Â 0¿¡ °¢°¢ ¼³Á¤µË´Ï´Ù.
| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
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()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.