Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 2047

php-manual-en-7.2.11-1.mga7.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, PHP 7)</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"> = E_ERROR</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>
<code class="parameter">message</code></dt>

     <dd>

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

    
    
     <dt>
<code class="parameter">code</code></dt>

     <dd>

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

    
    
     <dt>
<code class="parameter">severity</code></dt>

     <dd>

      <p class="para">
       The severity level of the exception.
      </p>
      <blockquote class="note"><p><strong class="note">Note</strong>: 
       <p class="para">
        While the severity can be any <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span> value, it is intended that the
        <a href="errorfunc.constants.html" class="link">error constants</a> be used.
       </p>
      </p></blockquote>
     </dd>

    
    
     <dt>
<code class="parameter">filename</code></dt>

     <dd>

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

    
    
     <dt>
<code class="parameter">lineno</code></dt>

     <dd>

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

    
    
     <dt>
<code class="parameter">previous</code></dt>

     <dd>

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

    
   </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 <code class="parameter">previous</code> 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>