Document is password-protected and no password or wrong password was provided
InvalidFormatException
File is corrupt or has an unrecognized format
GroupDocsMarkdownException
General conversion error
All three are unchecked — they extend RuntimeException, so the compiler does not force you to catch or declare them. DocumentProtectedException and InvalidFormatException both extend GroupDocsMarkdownException.
Warning
Catch the base type, not the subtypes. In 26.5 the converter wraps the specific exception inside a GroupDocsMarkdownException rather than letting it propagate, so a catch (DocumentProtectedException e) block never runs — the wrapper carries the original type name in its message instead. Catch GroupDocsMarkdownException and inspect getMessage() to distinguish causes.
Conversion warnings
Non-fatal issues are reported via DocumentConvertResult.getWarnings():