ERRORCODE_FILENOTFOUND
Versionshinweise | 22.1, 21.2.06, 21.1.11 |
---|
Code
PresentationConstants.ERRORCODE_FILENOTFOUND
Beschreibung
Die angegebene Datei kann nicht gefunden werden.
Beispiele
IPresentationResult openResult = PresentationUtils.openFile("C:\\Work\\myFirstPresentation.pptx");
if (!PresentationUtils.isSuccessful(openResult))
{
String errorCode = PresentationUtils.getErrorCode(openResult);
if (PresentationConstants.ERRORCODE_FILE_NOTFOUND.equals(errorCode))
{
//...handle FILE_NOTFOUND
ScriptUtils.debug("Error: Given presentation file " + openResult.getFileName() + " could not be found.");
}
else if (PresentationConstants.ERRORCODE_NOTSUPPORTED_FILETYPE.equals(errorCode))
{
//... handle NOTSUPPORTED_FILETYPE
}
else
{
//....handle PresentationConstants.ERRORCODE_GENERAL
}
/** do furthermore */
return;
}