Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1540

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs the exception</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.errorexception.html">ErrorException</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="errorexception.getseverity.html">ErrorException::getSeverity</a></div>
 <div class="up"><a href="class.errorexception.html">ErrorException</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="errorexception.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ErrorException::__construct</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0)</p><p class="refpurpose"><span class="refname">ErrorException::__construct</span> &mdash; <span class="dc-title">Constructs the exception</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-errorexception.construct-description">
  <h3 class="title">Description</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span>  <span class="methodname"><strong>ErrorException::__construct()</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$message</code><span class="initializer"> = &quot;&quot;</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$code</code><span class="initializer"> = 0</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$severity</code><span class="initializer"> = 1</span></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code><span class="initializer"> = __FILE__</span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$lineno</code><span class="initializer"> = __LINE__</span></span>
   [, <span class="methodparam"><span class="type"><a href="class.exception.html" class="type Exception">Exception</a></span> <code class="parameter">$previous</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
  ]]]]]] )</div>

  <p class="para rdfs-comment">
   Constructs the Exception.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-errorexception.construct-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">message</code></em></span>
     <dd>

      <p class="para">
       The Exception message to throw.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">code</code></em></span>
     <dd>

      <p class="para">
       The Exception code.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">severity</code></em></span>
     <dd>

      <p class="para">
       The severity level of the exception.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">filename</code></em></span>
     <dd>

      <p class="para">
       The filename where the exception is thrown.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">lineno</code></em></span>
     <dd>

      <p class="para">
       The line number where the exception is thrown.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">previous</code></em></span>
     <dd>

      <p class="para">
       The previous exception used for the exception chaining.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-errorexception.construct-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>5.3.0</td>
       <td>
        The <em><code class="parameter">previous</code></em> parameter was added.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.errorexception.html">ErrorException</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="errorexception.getseverity.html">ErrorException::getSeverity</a></div>
 <div class="up"><a href="class.errorexception.html">ErrorException</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>