public function __construct($elementType) { $msg = "Unknown DOM element type '{$elementType}'"; parent::__construct(500, $msg, $msg); }