Anyframe Core

anyframe.core.query
Class QueryServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by anyframe.common.exception.BaseException
              extended by anyframe.core.query.QueryServiceException
All Implemented Interfaces:
AnyFrameMessageSource, Serializable

public class QueryServiceException
extends BaseException

This is an exception class for handling the exceptions in operating QueryService.

Author:
SoYon Lim, JongHoon Kim
See Also:
Serialized Form

Field Summary
 
Fields inherited from class anyframe.common.exception.BaseException
message, messageKey, messageParameters
 
Constructor Summary
QueryServiceException(MessageSource messageSource, String messageKey)
          Constructor with a messageSource and message key
QueryServiceException(MessageSource messageSource, String messageKey, Object[] messageParameters)
          Constructor with a messageSource, message key and message parameters
QueryServiceException(MessageSource messageSource, String messageKey, Object[] messageParameters, Throwable exception)
          Constructor with a messageSource, message key, message parameters and an exception.
QueryServiceException(MessageSource messageSource, String messageKey, Throwable exception)
          Constructor with a messageSource, message key and an exception.
QueryServiceException(String message)
          Constructor with a message.
QueryServiceException(String message, Throwable exception)
          Constructor with a message and an exception.
 
Method Summary
 String getSqlErrorCode()
          Transmit the SQL ErrorCode occurred in executing the query
 String getSqlErrorMessage()
          Transmit the SQL ErrorMessage occurred in executing the query
 void setSqlErrorCode(String sqlErrorCode)
          Set the SQL ErrorCode occurred in executing the query
 void setSqlErrorMessage(String sqlErrorMessage)
          Set the SQL Error message occurred in executing the query
 
Methods inherited from class anyframe.common.exception.BaseException
getMessage, getMessageKey, getMessageParameters, getMessages, setMessageKey, setMessageParameters
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryServiceException

public QueryServiceException(String message)
Constructor with a message.

Parameters:
message - the message of this exception

QueryServiceException

public QueryServiceException(String message,
                             Throwable exception)
Constructor with a message and an exception.

Parameters:
message - the message of this exception
exception - the exception that is wrapped in this exception

QueryServiceException

public QueryServiceException(MessageSource messageSource,
                             String messageKey,
                             Object[] messageParameters)
Constructor with a messageSource, message key and message parameters

Parameters:
messageSource - messageSource handling the message resource
messageKey - the key of arbitrary message defined in message resource
messageParameters - the variable values for replacing in the arbitray message

QueryServiceException

public QueryServiceException(MessageSource messageSource,
                             String messageKey)
Constructor with a messageSource and message key

Parameters:
messageSource - messageSource handling the message resource
messageKey - the key of arbitrary message defined in message resource

QueryServiceException

public QueryServiceException(MessageSource messageSource,
                             String messageKey,
                             Object[] messageParameters,
                             Throwable exception)
Constructor with a messageSource, message key, message parameters and an exception.

Parameters:
messageSource - messageSource handling the message resource
messageKey - the key of arbitrary message defined in message resource
messageParameters - the variable values for replacing in the arbitray message
exception - the exception that is wrapped in this exception

QueryServiceException

public QueryServiceException(MessageSource messageSource,
                             String messageKey,
                             Throwable exception)
Constructor with a messageSource, message key and an exception.

Parameters:
messageSource - messageSource handling the message resource
messageKey - the key of arbitrary message defined in message resource
exception - the exception that is wrapped in this exception
Method Detail

getSqlErrorCode

public String getSqlErrorCode()
Transmit the SQL ErrorCode occurred in executing the query

Returns:
SQL Error Code occurred in executing the query

setSqlErrorCode

public void setSqlErrorCode(String sqlErrorCode)
Set the SQL ErrorCode occurred in executing the query

Parameters:
sqlErrorCode - the SQL Error Code occurred in executing the query

getSqlErrorMessage

public String getSqlErrorMessage()
Transmit the SQL ErrorMessage occurred in executing the query

Returns:
SQL Error message occurred in executing the query

setSqlErrorMessage

public void setSqlErrorMessage(String sqlErrorMessage)
Set the SQL Error message occurred in executing the query


Anyframe Core

Copyright © 2008-2009 Samsung SDS. All Rights Reserved.