<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.rarexception.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'rarexception.isusingexceptions.php',
    1 => 'RarException::isUsingExceptions',
    2 => 'Verifica se o tratamento de erros com exce&ccedil;&otilde;es est&aacute; em uso',
  ),
  'up' => 
  array (
    0 => 'class.rarexception.php',
    1 => 'RarException',
  ),
  'prev' => 
  array (
    0 => 'class.rarexception.php',
    1 => 'RarException',
  ),
  'next' => 
  array (
    0 => 'rarexception.setusingexceptions.php',
    1 => 'RarException::setUsingExceptions',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/rar/rarexception/isusingexceptions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="rarexception.isusingexceptions" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RarException::isUsingExceptions</h1>
  <p class="verinfo">(PECL rar &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">RarException::isUsingExceptions</span> &mdash; <span class="dc-title">Verifica se o tratamento de erros com exceções está em uso</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-rarexception.isusingexceptions-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>RarException::isUsingExceptions</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Verifica se as funções RAR emitirão avisos e retornarão valores de erro ou se
   lançarão exceções na maioria das circunstâncias (não inclui alguns erros programáticos,
   como passar o tipo errado de argumentos).
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-rarexception.isusingexceptions-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">Esta função não possui parâmetros.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-rarexception.isusingexceptions-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="simpara">
   Retorna <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> se exceções estão sendo usadas, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> caso contrário.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-rarexception.isusingexceptions-examples">
  <h3 class="title">Exemplos</h3>
  <div class="example" id="example-1">
   <p><strong>Exemplo #1 Exemplo de <span class="function"><strong>RarException::isUsingExceptions()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//O padrão é não usar exceções<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">RarException</span><span style="color: #007700">::</span><span style="color: #0000BB">isUsingExceptions</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>O exemplo acima produzirá
algo semelhante a:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(false)</pre>
</div>
   </div>
  </div>
 </div>



 <div class="refsect1 seealso" id="refsect1-rarexception.isusingexceptions-seealso">
  <h3 class="title">Veja Também</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="rarexception.setusingexceptions.php" class="methodname" rel="rdfs-seeAlso">RarException::setUsingExceptions()</a> - Ativa e desativa o tratamento de erros com exce&ccedil;&otilde;es</span></li>
  </ul>
 </div>


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