Class MarkItDownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.cyber655.markitdown.MarkItDownException
- All Implemented Interfaces:
Serializable
Thrown when a MarkItDown conversion fails: the
markitdown executable could not be
started, exited with a non-zero status, or timed out.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMarkItDownException(String message) Creates an exception with a message only.MarkItDownException(String message, int exitCode, String stderr, Throwable cause) Creates an exception describing a failed process invocation.MarkItDownException(String message, Throwable cause) Creates an exception with a message and underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MarkItDownException
Creates an exception with a message only. -
MarkItDownException
-
MarkItDownException
-
-
Method Details
-
exitCode
public int exitCode()The process exit code, or-1if the failure occurred before/without a clean exit (for example, the executable was not found or the call timed out). -
stderr
The captured standard-error output of the process, ornullif none was captured.
-