PHP » GoLang |
login |
register |
about
|
GoLang RarException::setUsingExceptions
request it (386)
GoLang replacement for PHP's RarException::setUsingExceptions
[edit | history]
PHP RarException::setUsingExceptionsPHP original manual for RarException::setUsingExceptions [ show | php.net ]RarException::setUsingExceptions(PECL rar >= 2.0.0) RarException::setUsingExceptions — Activate and deactivate error handling with exceptions Description
public static void RarException::setUsingExceptions
( bool
$using_exceptions
)
If and only if the argument is Exceptions will also be thrown for the following errors, which occur outside the library (their error code will be -1):
Parameters
Examples
Example #1 RarException::setUsingExceptions() example
<?php The above example will output something similar to: bool(false) Warning: RarArchive::open(): Failed to open does_not_exist.rar: ERAR_EOPEN (file open error) in C:\php_rar\trunk\tests\test.php on line 3 bool(false) bool(true) Fatal error: Uncaught exception 'RarException' with message 'unRAR internal error: Failed to open does_not_exist.rar: ERAR_EOPEN (file open error)' in C:\php_rar\trunk\tests\test.php:8 Stack trace: #0 C:\php_rar\trunk\tests\test.php(8): RarArchive::open('does_not_exist....') #1 {main} thrown in C:\php_rar\trunk\tests\test.php on line 8 |
more
Recently updated
more
Most requested
more
Last requests
|