com.simba.dsi.exceptions
Class ParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.simba.support.exceptions.ErrorException
              extended by com.simba.dsi.exceptions.ParsingException
All Implemented Interfaces:
java.io.Serializable

public final class ParsingException
extends com.simba.support.exceptions.ErrorException

An exception thrown when there is an error parsing a SQL statement.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.simba.support.exceptions.ErrorException
COMMUNICATIONS_ERROR, DSI_COMPONENT_NAME, DSI_ERROR, DSI_ERROR_MESSAGES, JDBC_COMPONENT_NAME, JDBC_ERROR, JDBC_ERROR_MESSAGES, JDBCClient_ERROR_MESSAGES, m_columnNumber, m_rowNumber, MESSAGES_COMPONENT_NAME, MESSAGES_ERROR, SQLENGINE_COMPONENT_NAME, SQLENGINE_ERROR, SQLENGINE_ERROR_MESSAGES, SUPPORT_CHANNELS, SUPPORT_CHANNELS_ERROR_MESSAGES, SUPPORT_CHANNELS_NAME
 
Constructor Summary
ParsingException(ParsingErrorID subcode, int componentId, java.lang.String msgKey)
          Constructor.
ParsingException(ParsingErrorID subcode, int componentId, java.lang.String msgKey, java.lang.String[] msgParams)
          Constructor.
ParsingException(ParsingErrorID subcode, java.lang.String message, int nativeErrorCode)
          Constructor.
 
Method Summary
 int getSubcode()
          Returns the parsing error subcode
 
Methods inherited from class com.simba.support.exceptions.ErrorException
getColumnNumber, getCustomState, getDiagState, getLocalizedMessage, getMessage, getMessage, getMessageKeyOrText, getMessageParams, getNativeErrorCode, getRowNumber, hasCustomState, hasMessageParams, hasPreformattedMessage, loadMessage, loadMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

ParsingException

public ParsingException(ParsingErrorID subcode,
                        int componentId,
                        java.lang.String msgKey)
Constructor.

Parameters:
subcode - Parsing error subcode.
componentId - The component ID.
msgKey - The message key.

ParsingException

public ParsingException(ParsingErrorID subcode,
                        java.lang.String message,
                        int nativeErrorCode)
Constructor.

A null message is saved as an empty string.

Parameters:
subcode - Parsing error subcode.
message - Preformatted error message.
nativeErrorCode - The native error code for this error.

ParsingException

public ParsingException(ParsingErrorID subcode,
                        int componentId,
                        java.lang.String msgKey,
                        java.lang.String[] msgParams)
Constructor.

Parameters:
subcode - Parsing error subcode.
componentId - The component ID.
msgKey - The message key.
msgParams - The parameters (or tokens) used to construct the error message.
Method Detail

getSubcode

public int getSubcode()
Returns the parsing error subcode

Returns:
the parsing error subcode.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.