Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 12860

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>Set error handler</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-dispatcher.setdefaultmodule.html">Yaf_Dispatcher::setDefaultModule</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaf-dispatcher.setrequest.html">Yaf_Dispatcher::setRequest</a></div>
 <div class="up"><a href="class.yaf-dispatcher.html">Yaf_Dispatcher</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="yaf-dispatcher.seterrorhandler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Dispatcher::setErrorHandler</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Dispatcher::setErrorHandler</span> &mdash; <span class="dc-title">Set error handler</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-dispatcher.seterrorhandler-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.yaf-dispatcher.html" class="type Yaf_Dispatcher">Yaf_Dispatcher</a></span> <span class="methodname"><strong>Yaf_Dispatcher::setErrorHandler</strong></span>
    ( <span class="methodparam"><span class="type"><span class="type call">call</span></span> <code class="parameter">$callback</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$error_types</code></span>
   )</div>

  <p class="para rdfs-comment">
    Set error handler for Yaf. when <a href="yaf.appconfig.html#configuration.yaf.dispatcher.throwexception" class="link">application.dispatcher.throwException</a>
    is off, Yaf will trigger catchable error while unexpected errors occrred.
  </p>
  <p class="para">
   Thus, this error handler will be called while the error raise.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-dispatcher.seterrorhandler-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   <dt>

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

     <p class="para">
      A callable callback
     </p>
    </dd>

   </dt>

   <dt>

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

     <p class="para">
      
     </p>
    </dd>

   </dt>

  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaf-dispatcher.seterrorhandler-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-dispatcher.seterrorhandler-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"> <span class="methodname"><a href="yaf-dispatcher.throwexception.html" class="methodname" rel="rdfs-seeAlso">Yaf_Dispatcher::throwException()</a> - Switch on/off exception throwing</span></li>
   <li class="member"> <span class="methodname"><a href="yaf-application.getlasterrorno.html" class="methodname" rel="rdfs-seeAlso">Yaf_Application::getLastErrorNo()</a> - Get code of last occurred error</span></li>
   <li class="member"> <span class="methodname"><a href="yaf-application.getlasterrormsg.html" class="methodname" rel="rdfs-seeAlso">Yaf_Application::getLastErrorMsg()</a> - Get message of the last occurred error</span></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-dispatcher.setdefaultmodule.html">Yaf_Dispatcher::setDefaultModule</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaf-dispatcher.setrequest.html">Yaf_Dispatcher::setRequest</a></div>
 <div class="up"><a href="class.yaf-dispatcher.html">Yaf_Dispatcher</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>