public class JRCatalogException
extends java.lang.Exception
JRCatalogException provides several kinds of information: 
 | Modifier and Type | Field and Description | 
|---|---|
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 and Description | 
|---|
JRCatalogException(int iErrorCode)
Constructs a  
JRCatalogException object with an error code. | 
JRCatalogException(int iErrorCode,
                  java.lang.String strDetail)
Constructs a fully-specified  
JRCatalogException object. | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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
public static final int CLOSE_CONNECTION_ERROR
public static final int USER_DATASOURCE_EXCEPTION
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 informationpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic int getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getErrorDetail()