|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception jet.bean.JRCatalogException
public class JRCatalogException
This exception is used when an error occurs in the catalog bean.
An exception that provides information on a catalog access
error.
Each JRCatalogException
provides several kinds of information:
Field Summary | |
---|---|
static int |
CAT_NAME_ERROR
The catalog name is null. |
static int |
CLOSE_CONNECTION_ERROR
When closing connection, an error occurred. |
static int |
CONNECTION_FAILURE_ERROR
The JDBC connection failure when try to create a connection to the database. |
static int |
CONNECTION_NAME_ERROR
The specified name is invalid or already used. |
static int |
CREATE_CAT_ERROR
Cannot create a catalog in the specified dirctory, because the directory does not exist or there is a catalog in the directory. |
static int |
CREATE_FILEQUERY_FAILED
Cannot create file query object. |
static int |
FILEQUERY_NAME_ERROR
The name of file query is either valid or exists. |
static int |
FILEQUERY_NOT_EXISTS
The specified file query does not exist. |
static int |
INVALID_TABLETYPE
The table type is not supported. |
static int |
INVALID_USERINFO
The user ID or password may be null. |
static int |
LOAD_CAT_ERROR
Cannot open the specified catalog file. |
static int |
NO_CAT_ERROR
The loadCatalog() or newCatalog() method should be called before other method is called. |
static int |
NO_CONNECTION_ERROR
There is no connection in the catalog. |
static int |
ONE_CONNECTION
A catalog can contain only one connection, and this error occurs when adding the second connection. |
static int |
SAVE_CAT_ERROR
Cannot save the catalog file succuessfully. |
static int |
SYSTEM_INITIALIZE_ERROR
The system initialize failed. |
static int |
UNKNOWN_ERROR
The unexpected error. |
static int |
USER_DATASOURCE_EXCEPTION
When adding IBM Sanfrancisco Printable Object, a JRUserDataSourceException or LoadUserDataSourceException is thrown out. |
static int |
WHERE_PORTION_NOT_EXISTS
The specified where portion does not exist. |
static int |
WHEREPORTION_NAME_ERROR
The specified name is invalid or already been used by another where portion. |
Constructor Summary | |
---|---|
JRCatalogException(int iErrorCode)
Constructs a JRCatalogException object with an error code. |
|
JRCatalogException(int iErrorCode,
java.lang.String strDetail)
Constructs a fully-specified JRCatalogException object. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the error code. |
java.lang.String |
getErrorDetail()
Gets the detail information of the error. |
java.lang.String |
getErrorMessage()
Returns the error message. |
java.lang.String |
getMessage()
Returns the error message and detail in a string. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SYSTEM_INITIALIZE_ERROR
public static final int CAT_NAME_ERROR
public static final int CREATE_CAT_ERROR
public static final int LOAD_CAT_ERROR
public static final int SAVE_CAT_ERROR
public static final int NO_CAT_ERROR
public static final int WHEREPORTION_NAME_ERROR
public static final int WHERE_PORTION_NOT_EXISTS
public static final int ONE_CONNECTION
public static final int CONNECTION_NAME_ERROR
public static final int CONNECTION_FAILURE_ERROR
public static final int FILEQUERY_NAME_ERROR
public static final int CREATE_FILEQUERY_FAILED
public static final int NO_CONNECTION_ERROR
public static final int FILEQUERY_NOT_EXISTS
public static final int UNKNOWN_ERROR
public static final int INVALID_USERINFO
public static final int INVALID_TABLETYPE
JRCatalog.TYPE_TABLE
,
JRCatalog.TYPE_VIEW
,
Constant Field Valuespublic static final int CLOSE_CONNECTION_ERROR
public static final int USER_DATASOURCE_EXCEPTION
Constructor Detail |
---|
public JRCatalogException(int iErrorCode)
JRCatalogException
object with an error code.
iErrorCode,
- the code of the error.public JRCatalogException(int iErrorCode, java.lang.String strDetail)
JRCatalogException
object.
iErrorCode,
- the code of the error.strDetail,
- the detail informationMethod Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public int getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getErrorDetail()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |