public final class Error
extends java.lang.Object
| Constructor and Description |
|---|
Error() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkXidAndThrowXAException(javax.transaction.xa.Xid aXid)
Xid°¡ ¿Ã¹Ù¸¥Áö È®ÀÎÇϰí, ÇÊ¿äÇÏ¸é ¿¹¿Ü¸¦ ´øÁø´Ù.
|
static java.sql.SQLException |
createSQLException(int aJDBCErrorCode) |
static java.sql.SQLException |
createSQLException(int aJDBCErrorCode,
java.lang.String aArg1) |
static java.sql.SQLException |
createSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2) |
static java.sql.SQLException |
createSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.Throwable aCause) |
static java.sql.SQLWarning |
createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLWarningÀ» ¸¸µç´Ù.
|
static java.sql.SQLWarning |
createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLWarningÀ» ¸¸µç´Ù.
|
static java.sql.SQLWarning |
createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLWarningÀ» ¸¸µç´Ù.
|
static java.sql.SQLWarning |
createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.Throwable aCause)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLWarningÀ» ¸¸µç´Ù.
|
static java.sql.SQLWarning |
createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg,
java.lang.Throwable aCause)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLWarningÀ» ¸¸µç´Ù.
|
static java.sql.SQLWarning |
createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.Throwable aCause)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLWarningÀ» ¸¸µç´Ù.
|
static boolean |
hasServerError(CmErrorResult aErrorResult)
¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯°¡ ÀÖ³ª È®ÀÎÇÑ´Ù.
|
static boolean |
isException(CmErrorResult aErrorResult)
This checks if there is a serious exception which must be handled as an error by user applications.
|
static java.sql.SQLWarning |
processServerError(java.sql.SQLWarning aWarning,
CmErrorResult aErrorResult)
¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯/°æ°í Á¤º¸¸¦ ó¸®ÇÑ´Ù.
|
static void |
processXaError(CmErrorResult aErrorResult,
CmXAResult aXAResult)
¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯ Á¤º¸¿Í XA °á°ú¸¦ È®ÀÎÇϰí, ÇÊ¿äÇÏ¸é ¿¹¿Ü¸¦ ´øÁø´Ù.
|
static void |
throwBatchUpdateException(int aJDBCErrorCode)
BatchUpdateExceptionÀ» ´øÁø´Ù. |
static void |
throwBatchUpdateException(int aJDBCErrorCode,
int[] aUpdateCounts)
BatchUpdateExceptionÀ» ´øÁø´Ù. |
static void |
throwBatchUpdateException(java.sql.SQLException aCause,
int[] aUpdateCounts)
SQLExceptionÀ» BatchUpdateExceptionÀ¸·Î Æ÷ÀåÇØ¼ ´øÁø´Ù.
|
static void |
throwCommunicationErrorException(java.lang.Throwable aCause)
communicationÀ¸·Î ÀÎÇÑ ¿¹¿Ü¸¦
SQLExceptionÀ¸·Î Æ÷ÀåÇØ¼ ´øÁ®ÁØ´Ù. |
static void |
throwIllegalArgumentException(int aJDBCErrorCode) |
static void |
throwIllegalArgumentException(int aJDBCErrorCode,
java.lang.String aArg1) |
static void |
throwIllegalArgumentException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2) |
static void |
throwIllegalArgumentException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.String aArg3) |
static void |
throwInternalError(int aJDBCErrorCode) |
static void |
throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1) |
static void |
throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2) |
static void |
throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.String aArg3) |
static void |
throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.Throwable aCause) |
static void |
throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.Throwable aCause) |
static void |
throwInternalError(int aJDBCErrorCode,
java.lang.Throwable aCause) |
static void |
throwIOException(int aJDBCErrorCode) |
static void |
throwIOException(java.lang.Throwable aCause) |
static void |
throwSQLException(int aJDBCErrorCode)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLException(int aJDBCErrorCode,
java.lang.String aArg)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.String aArg3)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.Throwable aCause)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLException(int aJDBCErrorCode,
java.lang.String aArg,
java.lang.Throwable aCause)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLException(int aJDBCErrorCode,
java.lang.Throwable aCause)
JDBCErrorCode¿¡ ÇØ´çÇÏ´Â SQLExceptionÀ» ´øÁø´Ù.
|
static void |
throwSQLExceptionForFailover(java.sql.SQLException aCause)
Failover success·Î Æ÷ÀåÇÑ ¿¹¿Ü¸¦ ´øÁø´Ù.
|
static void |
throwSQLExceptionForIOException(java.lang.Throwable aCause) |
static void |
throwXAException(int aJDBCErrorCode,
int aXaResult)
XAException ¿¹¿Ü¸¦ ´øÁø´Ù.
|
static void |
throwXaException(java.sql.SQLException aCause)
SQLExceptionÀ» XAExceptionÀ¸·Î °¨½Î ´øÁø´Ù.
|
static int |
toClientSideErrorCode(int aErrorCode) |
static int |
toServerSideErrorCode(int aErrorCode,
int aSeq) |
public static void throwSQLException(int aJDBCErrorCode)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåjava.sql.SQLExceptionpublic static void throwSQLException(int aJDBCErrorCode,
java.lang.Throwable aCause)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaCause - ¿ø·¡ ³µ´ø ¿¹¿Üjava.sql.SQLExceptionpublic static void throwSQLException(int aJDBCErrorCode,
java.lang.String aArg)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg - ¸Þ½ÃÁöÀÇ Ã¹¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªjava.sql.SQLExceptionpublic static void throwSQLException(int aJDBCErrorCode,
java.lang.String aArg,
java.lang.Throwable aCause)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg - ¸Þ½ÃÁöÀÇ Ã¹¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaCause - ¿ø·¡ ³µ´ø ¿¹¿Üjava.sql.SQLExceptionpublic static void throwSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg1 - ¸Þ½ÃÁöÀÇ 1¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaArg2 - ¸Þ½ÃÁöÀÇ 2¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªjava.sql.SQLExceptionpublic static void throwSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.Throwable aCause)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg1 - ¸Þ½ÃÁöÀÇ 1¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaArg2 - ¸Þ½ÃÁöÀÇ 2¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaCause - ¿ø·¡ ³µ´ø ¿¹¿Üjava.sql.SQLExceptionpublic static void throwSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.String aArg3)
throws java.sql.SQLException
aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg1 - ¸Þ½ÃÁöÀÇ 1¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaArg2 - ¸Þ½ÃÁöÀÇ 2¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaArg2 - ¸Þ½ÃÁöÀÇ 3¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªjava.sql.SQLExceptionpublic static java.sql.SQLException createSQLException(int aJDBCErrorCode)
public static java.sql.SQLException createSQLException(int aJDBCErrorCode,
java.lang.String aArg1)
public static java.sql.SQLException createSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
public static java.sql.SQLException createSQLException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.Throwable aCause)
public static void throwBatchUpdateException(int aJDBCErrorCode)
throws java.sql.BatchUpdateException
BatchUpdateExceptionÀ» ´øÁø´Ù.aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåjava.sql.BatchUpdateExceptionpublic static void throwBatchUpdateException(int aJDBCErrorCode,
int[] aUpdateCounts)
throws java.sql.BatchUpdateException
BatchUpdateExceptionÀ» ´øÁø´Ù.aJDBCErrorCode - ¿¹¿Ü¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaUpdateCounts - °¢ Äõ¸®¿¡ ´ëÇÑ update countsjava.sql.BatchUpdateExceptionpublic static void throwBatchUpdateException(java.sql.SQLException aCause,
int[] aUpdateCounts)
throws java.sql.BatchUpdateException
aCause - ¿ø·¡ ³µ´ø ¿¹¿ÜaUpdateCounts - °¢ Äõ¸®¿¡ ´ëÇÑ update countjava.sql.BatchUpdateExceptionpublic static void throwCommunicationErrorException(java.lang.Throwable aCause)
throws java.sql.SQLException
SQLExceptionÀ¸·Î Æ÷ÀåÇØ¼ ´øÁ®ÁØ´Ù.
¸¸¾à, ¿øº» ¿¹¿Ü°¡ SQLExceptionÀ̶ó¸é ±×³É ¿øº» ¿¹¿Ü¸¦ ´øÁø´Ù.
¿øº» ¿¹¿Ü°¡ SQLExceptionÀÌ ¾Æ´Ï¸é SQLExceptionÀ¸·Î Çѹø °¨½ÎÁÖ¸ç, ¿¡·¯ ¸Þ½ÃÁö ¾Õ¿¡ 'Communication link failure'¸¦ µ¡ºÙÀδÙ.
aCause - ¿ø·¡ ³µ´ø ¿¹¿Üjava.sql.SQLExceptionpublic static void throwSQLExceptionForIOException(java.lang.Throwable aCause)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void throwSQLExceptionForFailover(java.sql.SQLException aCause)
throws java.sql.SQLException
¸Þ½ÃÁö¿¡ Åë½Å 'Failover success'¶ó°í ÂïÈ÷¹Ç·Î, Åë½Å ÇÏ´Ù°¡ ³ °æ¿ì¿¡¸¸ ¾µ °Í.
aCause - ¿ø·¡ ³µ´ø ¿¹¿Üjava.sql.SQLExceptionpublic static boolean hasServerError(CmErrorResult aErrorResult)
next error±îÁö ¸ðµÎ È®ÀÎÇÑ´Ù.
aErrorResult - ¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯/°æ°í Á¤º¸public static java.sql.SQLWarning processServerError(java.sql.SQLWarning aWarning,
CmErrorResult aErrorResult)
throws java.sql.SQLException
¸¸¾à, ¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯°¡ ¿©·¯°³¶ó¸é À̸¦ chainÀ¸·Î ¿¬°áÇÑ´Ù.
aWarning - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aErrorResult - ¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯/°æ°í Á¤º¸java.sql.SQLException - ¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯°¡ 1°³¶óµµ ÀÖ´Â °æ¿ìpublic static int toClientSideErrorCode(int aErrorCode)
public static int toServerSideErrorCode(int aErrorCode,
int aSeq)
public static boolean isException(CmErrorResult aErrorResult)
aErrorResult - Errors happened while processing user requests.public static void processXaError(CmErrorResult aErrorResult, CmXAResult aXAResult) throws javax.transaction.xa.XAException
aErrorResult - ¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯/°æ°í Á¤º¸aXAResult - ¼¹ö¿¡¼ ¹ÞÀº XA °á°újavax.transaction.xa.XAException - ¼¹ö¿¡¼ ¹ÞÀº ¿¡·¯°¡ ÀÖ´Â °æ¿ìpublic static void checkXidAndThrowXAException(javax.transaction.xa.Xid aXid)
throws javax.transaction.xa.XAException
aXid - ¿Ã¹Ù¸¥Áö È®ÀÎÇÒ Xidjavax.transaction.xa.XAException - Xid°¡ ¿Ã¹Ù¸£Áö ¾ÊÀ» °æ¿ìpublic static void throwXAException(int aJDBCErrorCode,
int aXaResult)
throws javax.transaction.xa.XAException
aJDBCErrorCode - ¿¡·¯ ÄÚµåaXaResult - XA Resultjavax.transaction.xa.XAExceptionpublic static void throwXaException(java.sql.SQLException aCause)
throws javax.transaction.xa.XAException
aCause - ¿ø·¡ ³µ´ø ¿¹¿Üjavax.transaction.xa.XAExceptionpublic static java.sql.SQLWarning createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode)
aParent - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aJDBCErrorCode - °æ°í¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåpublic static java.sql.SQLWarning createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.Throwable aCause)
aParent - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aJDBCErrorCode - °æ°í¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaCause - ¿ø·¡ ³µ´ø ¿¹¿Üpublic static java.sql.SQLWarning createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg)
aParent - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aJDBCErrorCode - °æ°í¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg - ¸Þ½ÃÁöÀÇ Ã¹¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªpublic static java.sql.SQLWarning createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg,
java.lang.Throwable aCause)
aParent - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aJDBCErrorCode - °æ°í¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg - ¸Þ½ÃÁöÀÇ Ã¹¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaCause - ¿ø·¡ ³µ´ø ¿¹¿Üpublic static java.sql.SQLWarning createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
aParent - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aJDBCErrorCode - °æ°í¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg1 - ¸Þ½ÃÁöÀÇ 1¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaArg2 - ¸Þ½ÃÁöÀÇ 2¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªpublic static java.sql.SQLWarning createWarning(java.sql.SQLWarning aParent,
int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.Throwable aCause)
aParent - °æ°í¸¦ ¿¬°áÇÒ °´Ã¼. nullÀÌ¸é »õ·Î ¸¸µç´Ù.aJDBCErrorCode - °æ°í¸¦ ¸¸µå´Âµ¥ »ç¿ëÇÒ ¿¡·¯ ÄÚµåaArg1 - ¸Þ½ÃÁöÀÇ 1¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaArg2 - ¸Þ½ÃÁöÀÇ 2¹øÂ° ÀÎÀÚ¿¡ ¼³Á¤ÇÒ ÀÎÀÚ°ªaCause - ¿ø·¡ ³µ´ø ¿¹¿Üpublic static void throwInternalError(int aJDBCErrorCode)
public static void throwInternalError(int aJDBCErrorCode,
java.lang.Throwable aCause)
public static void throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1)
public static void throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.Throwable aCause)
public static void throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
public static void throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.Throwable aCause)
public static void throwInternalError(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.String aArg3)
public static void throwIOException(int aJDBCErrorCode)
throws java.io.IOException
java.io.IOExceptionpublic static void throwIOException(java.lang.Throwable aCause)
throws java.io.IOException
java.io.IOExceptionpublic static void throwIllegalArgumentException(int aJDBCErrorCode)
public static void throwIllegalArgumentException(int aJDBCErrorCode,
java.lang.String aArg1)
public static void throwIllegalArgumentException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2)
public static void throwIllegalArgumentException(int aJDBCErrorCode,
java.lang.String aArg1,
java.lang.String aArg2,
java.lang.String aArg3)