Class MarkItDownException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.cyber655.markitdown.MarkItDownException
All Implemented Interfaces:
Serializable

public class MarkItDownException extends RuntimeException
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 Details

    • MarkItDownException

      public MarkItDownException(String message)
      Creates an exception with a message only.
    • MarkItDownException

      public MarkItDownException(String message, Throwable cause)
      Creates an exception with a message and underlying cause.
    • MarkItDownException

      public MarkItDownException(String message, int exitCode, String stderr, Throwable cause)
      Creates an exception describing a failed process invocation.
  • Method Details

    • exitCode

      public int exitCode()
      The process exit code, or -1 if the failure occurred before/without a clean exit (for example, the executable was not found or the call timed out).
    • stderr

      public String stderr()
      The captured standard-error output of the process, or null if none was captured.