<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.errorexception.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'errorexception.construct.php',
    1 => 'ErrorException::__construct',
    2 => 'Constructs the exception',
  ),
  'up' => 
  array (
    0 => 'class.errorexception.php',
    1 => 'ErrorException',
  ),
  'prev' => 
  array (
    0 => 'class.errorexception.php',
    1 => 'ErrorException',
  ),
  'next' => 
  array (
    0 => 'errorexception.getseverity.php',
    1 => 'ErrorException::getSeverity',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/predefined/errorexception/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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, PHP 8)</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">Опис</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ErrorException::__construct</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$message</code><span class="initializer"> = &quot;&quot;</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$code</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$severity</code><span class="initializer"> = <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$filename</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.integer.php" class="type int">int</a></span></span> <code class="parameter">$line</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.throwable.php" class="type Throwable">Throwable</a></span></span> <code class="parameter">$previous</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>)</div>

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

 
 <div class="refsect1 parameters" id="refsect1-errorexception.construct-parameters">
  <h3 class="title">Параметри</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">Зауваження</strong>: 
       <p class="para">
        While the severity can be any <span class="type"><a href="language.types.integer.php" class="type int">int</a></span> value, it is intended that the
        <a href="errorfunc.constants.php" 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">line</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">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">filename</code> and <code class="parameter">line</code> are nullable now.
       Previously, their defaults were <strong><code><a href="language.constants.magic.php#constant.file">__FILE__</a></code></strong> and
       <strong><code><a href="language.constants.magic.php#constant.line">__LINE__</a></code></strong>, respectively.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


</div><?php manual_footer($setup); ?>