Skip to main content
Skip table of contents

ERRORCODE_FILENOTFOUND

Versionshinweise

22.1, 21.2.06, 21.1.11

Code

GROOVY
PresentationConstants.ERRORCODE_FILENOTFOUND

Beschreibung

Die angegebene Datei kann nicht gefunden werden.

Beispiele

GROOVY
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;
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.