1<?php 2 3namespace dokuwiki\plugin\extendpage\meta; 4 5/** 6 * Class ExtendPageException 7 * 8 * @package dokuwiki\plugin\extendpage\meta 9 */ 10class ExtendPageException extends \RuntimeException 11{ 12 13 protected $trans_prefix = 'Exception '; 14 15 /** 16 * ExtendPageException constructor. 17 * 18 * @param string $message 19 * @param ...string $vars 20 */ 21 public function __construct($message) 22 { 23 /** @var \helper_plugin_extendpage $plugin */ 24 $plugin = plugin_load('helper', 'extendpage'); 25 26 $args = func_get_args(); 27 array_shift($args); 28 29 $trans = vsprintf($message, $args); 30 31 parent::__construct($message, -1, null); 32 } 33} 34