public static function debugException($message, $code, $debugData) { $exception = new self($message, $code); $exception->setDebug($debugData); return $exception; }