com.poscoict.glueframework.dao
Class GlueDaoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.poscoict.glueframework.GlueException
                  extended by com.poscoict.glueframework.dao.GlueDaoException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GlueBadSqlGrammarException, GlueDataAccessResourceFailureException, GlueDataIntegrityViolationException, GlueUncategorizedSQLException

public class GlueDaoException
extends GlueException

Data Access Object(DAO) 관련 Exception이 발생했을 때 쓰로우 된다.

See Also:
Serialized Form

Constructor Summary
GlueDaoException(String msg)
          생성자(constructor).
GlueDaoException(String msg, Throwable cause)
          생성자(constructor).
 
Method Summary
 int getErrorCode()
          Database Error Code를 얻는다.
 String getSql()
          SQL Query Statement를 얻는다.
 void setErrorCode(int errorCode)
          Database Error Code를 설정한다.
 void setSql(String sql)
          SQL Query Statement를 설정한다.
 
Methods inherited from class com.poscoict.glueframework.GlueException
getRootCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlueDaoException

public GlueDaoException(String msg)
생성자(constructor).

Parameters:
msg -

GlueDaoException

public GlueDaoException(String msg,
                        Throwable cause)
생성자(constructor).

Parameters:
msg -
cause -
Method Detail

getErrorCode

public int getErrorCode()
Database Error Code를 얻는다.

Returns:
Error Code

setErrorCode

public void setErrorCode(int errorCode)
Database Error Code를 설정한다.

Parameters:
errorCode - Error Code

getSql

public String getSql()
SQL Query Statement를 얻는다.

Returns:
SQL Query Statement

setSql

public void setSql(String sql)
SQL Query Statement를 설정한다.

Parameters:
sql - SQL Query Statement


Copyright © 2013–2017 POSCO ICT. All rights reserved.