public function __construct($template, $webspace) { parent::__construct(sprintf('Error template "%s" in webspace "%s" has to be defined as default or with a code.', $template, $webspace)); $this->template = $template; $this->webspace = $webspace; }