1<?php
2
3namespace dokuwiki\plugin\prosemirror;
4
5/**
6 * Class ProsemirrorException
7 *
8 * A translatable exception
9 *
10 * @package dokuwiki\plugin\prosemirror
11 */
12class ProsemirrorException extends \RuntimeException
13{
14    public $data = [];
15
16    /**
17     * @param string $key
18     * @param mixed $data
19     */
20    public function addExtraData($key, $data)
21    {
22        $this->data[$key] = $data;
23    }
24
25    public function getExtraData()
26    {
27        return $this->data;
28    }
29}
30