Class SourceWarning

  • All Implemented Interfaces:
    Serializable

    public class SourceWarning
    extends TeiidException

    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
    • Constructor Detail

      • SourceWarning

        public SourceWarning​(String model,
                             String connectorBinding,
                             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 String getModelName()

        Get's the model name for the atomic query.

        Returns:
        The name of the model
      • getConnectorBindingName

        public String getConnectorBindingName()

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

        Returns:
        The Connector Binding Name
      • isPartialResultsError

        public boolean isPartialResultsError()
      • toString

        public String toString()

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

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