net.windward.datasource
Class DataSourceException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--net.windward.datasource.DataSourceException
- All Implemented Interfaces:
- java.io.Serializable
- public class DataSourceException
- extends java.lang.Exception
All exceptions thrown by the datasource classes are wrapped in this exception. The isInvalidSelect means that the
command (usually a select) passed to the underlying data system was an invalid command. This is an expected
possibility when processing multiple data sources. A SQL select will be garbage to an XPath select and vice versa.
- Version:
- 2.0 2 January 2004
- See Also:
- Serialized Form
|
Constructor Summary |
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.Throwable cause,
int subType)
Constructs a new exception with the specified detail message and cause. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNKNOWN
public static final int UNKNOWN
INVALID_SELECT
public static final int INVALID_SELECT
INVALID_INDEX
public static final int INVALID_INDEX
INVALID_NUMBER
public static final int INVALID_NUMBER
INVALID_DATE
public static final int INVALID_DATE
ILLEGAL_VAR
public static final int ILLEGAL_VAR
IO_ERROR
public static final int IO_ERROR
BEAN_ERROR
public static final int BEAN_ERROR
CHART_INVALID_SCHEMA
public static final int CHART_INVALID_SCHEMA
CHART_TAG_ERROR
public static final int CHART_TAG_ERROR
CHART_DATASET_ERROR
public static final int CHART_DATASET_ERROR
CHART_MISMATCHED_GRAPHS
public static final int CHART_MISMATCHED_GRAPHS
CHART_NULL_DATA_ITEM
public static final int CHART_NULL_DATA_ITEM
DataSourceException
public DataSourceException(java.lang.String message,
java.lang.Throwable cause,
int subType)
- Constructs a new exception with the specified detail message and cause. Sets isInvalidSelect too (usually set
to true as the default is false).
- Parameters:
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.
DataSourceException
public DataSourceException(java.lang.String message,
int subType)
- Constructs a new exception with the specified detail message and cause. Sets isInvalidSelect too (usually set
to true as the default is false).
- Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).subType - sub-type of exception.
getSubType
public int getSubType()
- The sub-type of the exception.
- Returns:
- sub-type of the exception.
get_Message
public java.lang.String get_Message()
Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software