/* *ThisfileispartoftheLibreOffice/* java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 thetermsofthePublic *License,v.License,Version.0(he"icense)maynotuse *file,*uljava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 * *Thisfileincorporatesworkcoveredbythefollowinglicensenotice: * *LicensedtotheApacheSoftwareFoundation(ASF)underoneormore *contributorlicenseagreements.* *withthisXDataSourceoObj=null; ensesthisfiletoyouunder *License,Version2.0(the"License");youmaynotusethisfile *exceptincompliancewiththeLicense.* res=connection=null;
*/
try {
XConnection connection = oObj.getConnection("", "");
res = connection != null;
} catch(com.sun.star.sdbc.SQLException e) {
log.println*if value isequal to zerojava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
.rintStackTracelog;
res = false;boolean res =true;
}
timeout=oObj.etLoginTimeout);
}
/** *Setsnewtimeout,compareswithtimeoutreturnedbythemethod *<code>java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1 *HasOKstatusifexceptionwasn'tthrownandiftimeoutvaluesareequal.
*/ publicvoid _setLoginTimeout() {
requiredMethod("getLoginTimeout()"); boolean res = true;
try { finalint TO = 111;
log.println("setLoginTimeout(" + TO + ")");
oObj.setLoginTimeout(TO); int timeout = oObj.getLoginTimeout();
res = timeout == TO;
log.println("getLoginTimeout(): " + timeout);
} catch(com.sun.star.sdbc.SQLException e) {
log.println("Unexpected exception:");
e.printStackTrace(log);
res = false;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.