com.metamatrix.dqp.exception
Class SourceWarning

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.metamatrix.core.MetaMatrixCoreException
              extended by com.metamatrix.api.exception.MetaMatrixException
                  extended by com.metamatrix.dqp.exception.SourceWarning
All Implemented Interfaces:
java.io.Serializable

public class SourceWarning
extends MetaMatrixException

This class is used to store the details of an atomic query warning. It stores model name on which the atomic query is based, name of the connector binding for the data source against which the atomic query is executed, and the actual exception thrown when the atomic query is executed.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.core.MetaMatrixCoreException
code
 
Constructor Summary
SourceWarning(java.lang.String model, java.lang.String connectorBinding, java.lang.Throwable ex, boolean partialResults)
          Constructor that stores atomic query failure details.
 
Method Summary
 java.lang.String getConnectorBindingName()
          Get's the connector binding name for the atomic query.
 java.lang.String getModelName()
          Get's the model name for the atomic query.
 boolean isPartialResultsError()
           
 java.lang.String toString()
          Gets a message detailing the source against which the atomic query failed.
 
Methods inherited from class com.metamatrix.api.exception.MetaMatrixException
getChild, getFullMessage
 
Methods inherited from class com.metamatrix.core.MetaMatrixCoreException
getCode, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceWarning

public SourceWarning(java.lang.String model,
                     java.lang.String connectorBinding,
                     java.lang.Throwable ex,
                     boolean partialResults)

Constructor that stores atomic query failure details.

Parameters:
model - Name of the model for the atomic query
connectorBinding - Name of the connector binding name for the atomic query
ex - Exception thrown when atomic query fails
Method Detail

getModelName

public java.lang.String getModelName()

Get's the model name for the atomic query.

Returns:
The name of the model

getConnectorBindingName

public java.lang.String getConnectorBindingName()

Get's the connector binding name for the atomic query.

Returns:
The Connector Binding Name

isPartialResultsError

public boolean isPartialResultsError()

toString

public java.lang.String toString()

Gets a message detailing the source against which the atomic query failed.

Overrides:
toString in class MetaMatrixException
Returns:
Message containing details of the source for which there is a failure.


Copyright © 2009. All Rights Reserved.