---
name: "Pandoc::Error"
section: "3pm"
platform: "linux"
package: "libpandoc-wrapper-perl"
version: "0.9.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Pandoc::Error"
---

# Pandoc::Error(3pm)

Pandoc document processing error

## NAME

Pandoc::Error - Pandoc document processing error

## SYNOPSIS

```
  use Try::Tiny;
  try {
      ...
  } catch {
      if ( blessed $_ && $_->isa('Pandoc::Error') ) {
          ...
      }
  };
```

## METHODS

### throw( \[ %fields \] )

Throw an existing error or create and throw a new error. Setting field `"message"` is recommended. The message is enriched with error location.  A stack trace can be added with `$Carp::Verbose` or Carp::Always.

### message

The error message. Also returned on stringification.

## SEE ALSO

This class does not inherit from Throwable, Exception::Class or Class::Exception but may do so in a future version.
