com.simba.dsi.exceptions
Class BadDefaultParamException

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.BadDefaultParamException
All Implemented Interfaces:
java.io.Serializable

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

An exception thrown when the user tries to pass in a "default" parameter in a scenario where "default" parameters cannot be used.

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
BadDefaultParamException(int componentId, int paramSetNumber, int paramNumber)
          Constructor.
BadDefaultParamException(java.lang.String message, int nativeErrorCode, int paramSetNumber, int paramNumber)
          Constructor.
 
Method Summary
 
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

BadDefaultParamException

public BadDefaultParamException(int componentId,
                                int paramSetNumber,
                                int paramNumber)
Constructor.

Parameter and parameter set numbering should start with 1. The "first parameter" and "first parameter set" each have index 1. NO_COLUMN_NUMBER and COLUMN_NUMBER_UNKNOWN may also be used for the parameter number. NO_ROW_NUMBER and ROW_NUMBER_UNKNOWN may also be used for the parameter set number.

Parameters:
componentId - The component ID.
paramSetNumber - Parameter set number starting with 1, NO_ROW_NUMBER, or ROW_NUMBER_UNKNOWN.
paramNumber - Parameter number starting with 1, NO_COLUMN_NUMBER, or COLUMN_NUMBER_UNKNOWN.

BadDefaultParamException

public BadDefaultParamException(java.lang.String message,
                                int nativeErrorCode,
                                int paramSetNumber,
                                int paramNumber)
Constructor.

A null message is saved as an empty string.

Parameters:
message - Preformatted error message.
nativeErrorCode - The native error code for this error.
paramSetNumber - Parameter set number starting with 1, NO_ROW_NUMBER, or ROW_NUMBER_UNKNOWN.
paramNumber - Parameter number starting with 1, NO_COLUMN_NUMBER, or COLUMN_NUMBER_UNKNOWN.


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