Package org.teiid.client
Class SourceWarning
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.teiid.core.TeiidException
-
- org.teiid.client.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
-
-
Field Summary
Fields Modifier and Type Field Description static StackTraceElement[]
EMPTY_STACK_TRACE
-
Fields inherited from class org.teiid.core.TeiidException
code
-
-
Constructor Summary
Constructors Constructor Description SourceWarning(String model, String connectorBinding, Throwable ex, boolean partialResults)
Constructor that stores atomic query failure details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConnectorBindingName()
Get's the connector binding name for the atomic query.String
getModelName()
Get's the model name for the atomic query.boolean
isPartialResultsError()
String
toString()
Gets a message detailing the source against which the atomic query failed.-
Methods inherited from class org.teiid.core.TeiidException
getCode, getMessage, getOriginalType, setCode, setOriginalType
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
EMPTY_STACK_TRACE
public static final StackTraceElement[] EMPTY_STACK_TRACE
-
-
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 queryconnectorBinding
- Name of the connector binding name for the atomic queryex
- 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()
-
-