<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [Xunsearch PHP-SDK](http://www.xunsearch.com) v1.4.8 API 參考文檔 # XSErrorException [All Packages](#)| [屬性](#)| [方法(函數)](#) | 包 | [XS](#) | |-----|-----| | 繼承關系 | class XSErrorException ?[XSException](#) ?Exception | | 版本 | 1.0.0 | | 源代碼 | [sdk/php/lib/XS.class.php](https://github.com/hightman/xunsearch/blob/master/sdk/php/lib/XS.class.php) | XS 錯誤異常類定義, XS 所有操作過程發生錯誤均拋出該實例 ### Protected 屬性 [隱去繼承來的屬性](#) | 名稱 | 類型 | 描述 | 定義于 | |-----|-----|-----|-----| | code | | | Exception | | file | | | Exception | | line | | | Exception | | message | | | Exception | ### Public 方法 [隱去繼承來的方法](#) | 名稱 | 描述 | 定義于 | |-----|-----|-----| | [__construct()](#) | 構造函數 | XSErrorException | | [__toString()](#) | 將類對象轉換成字符串 | XSErrorException | | getCode() | | Exception | | getFile() | | Exception | | getLine() | | Exception | | getMessage() | | Exception | | getPrevious() | | Exception | | [getRelPath()](#) | 取得相對當前的文件路徑 | [XSException](#) | | getTrace() | | Exception | | getTraceAsString() | | Exception | ### 方法明細 __construct()方法 <table class="summaryTable"><tr><td colspan="3"><div class="signature2">public void <b>__construct</b>(int $code, string $message, string $file, int $line, Exception $previous=NULL)</div></td></tr><tr><td class="paramNameCol">$code</td> <td class="paramTypeCol">int</td> <td class="paramDescCol">出錯代碼</td></tr><tr><td class="paramNameCol">$message</td> <td class="paramTypeCol">string</td> <td class="paramDescCol">出錯信息</td></tr><tr><td class="paramNameCol">$file</td> <td class="paramTypeCol">string</td> <td class="paramDescCol">出錯所在文件</td></tr><tr><td class="paramNameCol">$line</td> <td class="paramTypeCol">int</td> <td class="paramDescCol">出錯所在的行數</td></tr><tr><td class="paramNameCol">$previous</td> <td class="paramTypeCol">Exception</td> <td class="paramDescCol"></td></tr></table> **源碼:**[sdk/php/lib/XS.class.php#L134](https://github.com/hightman/xunsearch/blob/master/sdk/php/lib/XS.class.php#L134) (**[顯示](#)**) `public?function?__construct($code,?$message,?$file,?$line,?$previous?=?null) { ????$this->_file?=?$file; ????$this->_line?=?$line; ????if?(version_compare(PHP_VERSION,?'5.3.0',?'>='))?{ ????????parent::__construct($message,?$code,?$previous); ????}?else?{ ????????parent::__construct($message,?$code); ????} }` 構造函數將 $file, $line 記錄到私有屬性在 __toString 中使用 __toString()方法 <table class="summaryTable"><tr><td colspan="3"><div class="signature2">public string <b>__toString</b>()</div></td></tr><tr><td class="paramNameCol">{return}</td> <td class="paramTypeCol">string</td> <td class="paramDescCol">異常的簡要描述信息</td></tr></table> **源碼:**[sdk/php/lib/XS.class.php#L149](https://github.com/hightman/xunsearch/blob/master/sdk/php/lib/XS.class.php#L149) (**[顯示](#)**) `public?function?__toString() { ????$string?=?'['?.?__CLASS__?.?']?'?.?$this->getRelPath($this->_file)?.?'('?.?$this->_line?.?'):?'; ????$string?.=?$this->getMessage()?.?'('?.?$this->getCode()?.?')'; ????return?$string; }` 將類對象轉換成字符串 Copyright ? 2008-2011 by [杭州云圣網絡科技有限公司](http://www.xunsearch.com) All Rights Reserved.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看