public class DataSourceException extends WindwardException
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_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.
|
ForEachTag[] |
getForEachTags()
The forEach stack in place when this exception occured.
|
java.util.Map |
getParameters()
The names of all parameters in scope.
|
QueryTag[] |
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,
ForEachTag[] forEachTags,
QueryTag[] queryTags)
Set the remaining properties.
|
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 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, ForEachTag[] forEachTags, QueryTag[] 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 ForEachTag[] getForEachTags()
public QueryTag[] getQueryTags()
Copyright © 2017 Windward Reports - All Rights Reserved. We are java reporting software