public class DataSourceException extends WindwardException
Modifier and Type | Class and Description |
---|---|
static class |
DataSourceException.ForEachInfo
The info on a forEach tag used to return this info in the DataSourceException.
|
static class |
DataSourceException.QueryInfo
The info on a query tag used to return this info in the DataSourceException.
|
Modifier and Type | Field and Description |
---|---|
static int |
CHART_DATASET_ERROR |
static int |
CHART_INVALID_SCHEMA |
static int |
CHART_MISMATCHED_GRAPHS |
static int |
CHART_NULL_DATA_ITEM |
static int |
CHART_TAG_ERROR |
static int |
EQUATION_ERROR |
static int |
FILTER_ON_STORED_PROCEDURE |
static int |
ILLEGAL_VAR |
static int |
INVALID_DATE |
static int |
INVALID_FILENAME
Import tag, failed to read the filename that the select returned.
|
static int |
INVALID_INDEX |
static int |
INVALID_NUMBER |
static int |
INVALID_SELECT |
static int |
IO_ERROR |
static int |
MISMATCHED_VARIABLE
Does not have matching ${ ...
|
static int |
NOT_SUPPORT |
static int |
SELECT_ON_A_VAR |
static int |
UNKNOWN |
static int |
UNKNOWN_VAR |
static int |
UNSUPPORTED_TAG_PROPERTY |
Constructor and Description |
---|
DataSourceException(java.lang.String message,
int subType)
Constructs a new exception with the specified detail message and cause.
|
DataSourceException(java.lang.String message,
java.lang.String finalSelect,
int subType)
Constructs a new exception with the specified detail message and cause.
|
DataSourceException(java.lang.String message,
java.lang.String finalSelect,
java.lang.Throwable cause,
int subType)
Constructs a new exception with the specified detail message and cause.
|
DataSourceException(java.lang.String message,
java.lang.Throwable cause,
int subType)
Constructs a new exception with the specified detail message and cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFinalSelect()
The final select that caused this exception.
|
java.util.List<DataSourceException.ForEachInfo> |
getForEachTags()
The forEach stack in place when this exception occured.
|
java.lang.String |
getMessage()
Returns the detail message string of this throwable.
|
java.util.Map |
getParameters()
The names of all parameters in scope.
|
java.util.List<DataSourceException.QueryInfo> |
getQueryTags()
The query tags in scope when this exception occured.
|
int |
getSubType()
The sub-type of the exception.
|
BaseTag |
getTag()
The tag that caused this exception.
|
boolean |
isSelectType()
Returns true if this is from a select.
|
void |
setProperties(BaseTag tag)
Set the tag property.
|
void |
setProperties(BaseTag tag,
java.util.Map parameters,
DataSourceException.ForEachInfo[] forEachTags,
DataSourceException.QueryInfo[] queryTags)
Set the remaining properties.
|
java.lang.String |
toString() |
getDocPos, getFullTag, setDocPos, setFullTag
public static final int UNKNOWN
public static final int INVALID_SELECT
public static final int INVALID_INDEX
public static final int INVALID_NUMBER
public static final int INVALID_DATE
public static final int ILLEGAL_VAR
public static final int IO_ERROR
public static final int UNKNOWN_VAR
public static final int EQUATION_ERROR
public static final int SELECT_ON_A_VAR
public static final int FILTER_ON_STORED_PROCEDURE
public static final int UNSUPPORTED_TAG_PROPERTY
public static final int CHART_INVALID_SCHEMA
public static final int CHART_TAG_ERROR
public static final int CHART_DATASET_ERROR
public static final int CHART_MISMATCHED_GRAPHS
public static final int CHART_NULL_DATA_ITEM
public static final int NOT_SUPPORT
public static final int MISMATCHED_VARIABLE
public static final int INVALID_FILENAME
public DataSourceException(java.lang.String message, java.lang.String finalSelect, java.lang.Throwable cause, int subType)
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage() method).finalSelect
- the final select passed to the datasource. Set to null if n/a or unknown.cause
- cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)subType
- sub-type of exception.public DataSourceException(java.lang.String message, java.lang.Throwable cause, int subType)
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage() method).cause
- cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null
value is permitted, and indicates that the cause is nonexistent or unknown.)subType
- sub-type of exception.public DataSourceException(java.lang.String message, java.lang.String finalSelect, int subType)
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage() method).finalSelect
- the final select passed to the datasource. Set to null if n/a or unknown.subType
- sub-type of exception.public DataSourceException(java.lang.String message, int subType)
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage() method).subType
- sub-type of exception.public void setProperties(BaseTag tag, java.util.Map parameters, DataSourceException.ForEachInfo[] forEachTags, DataSourceException.QueryInfo[] queryTags)
tag
- The tag that caused this exception. Set to null if n/a or unknown.parameters
- the parameters known at this time. Set to null if n/a or unknown.forEachTags
- The forEach tags in scope. Set to null if n/a or unknown.queryTags
- The query tags in scope. Set to null if n/a or unknown.public void setProperties(BaseTag tag)
tag
- The tag that caused this exception. Set to null if n/a or unknown.public BaseTag getTag()
public int getSubType()
public boolean isSelectType()
public java.lang.String getFinalSelect()
public java.util.Map getParameters()
public java.util.List<DataSourceException.ForEachInfo> getForEachTags()
public java.util.List<DataSourceException.QueryInfo> getQueryTags()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
Throwable
instance
(which may be null
).public java.lang.String toString()
toString
in class java.lang.Throwable
Copyright © 2002-2021 Windward Studios, LLC. - All Rights Reserved. We are Java document generation software