public function __construct($className) { $msg = "Class '{$className}' does not inherit from Prose\\Prose"; parent::__construct(500, $msg, $msg); }