Lines Matching refs:PasteException
6 use dokuwiki\plugin\imgpaste\Exception as PasteException; alias
54 } catch (PasteException $e) {
69 * @throws PasteException
74 if (!$data) throw new PasteException($this->getLang('e_nodata'), 400);
88 * @throws PasteException
97 if (!$data) throw new PasteException($lang['uploadfail'], 500);
103 * @throws PasteException
112 if (!isset($mimetypes[$type])) throw new PasteException($lang['uploadwrong'], 415);
120 if ($auth < AUTH_UPLOAD) throw new PasteException($lang['uploadfail'], 403);
134 if (is_array($result)) throw new PasteException($result[0], 500);
194 if (!$this->tempdir) throw new PasteException('', 500);
196 if (!io_saveFile($this->tempfile, $data)) throw new PasteException('', 500);