RarException::isUsingExceptions

(PECL rar >= 2.0.0)

RarException::isUsingExceptionsCheck whether error handling with exceptions is in use

說明

public static bool RarException::isUsingExceptions ( void )

Checks whether the RAR functions will emit warnings and return error values or whether they will throw exceptions in most of the circumstances (does not include some programmatic errors such as passing the wrong type of arguments).

參數

此函式沒有參數。

回傳值

Returns TRUE if exceptions are being used, FALSE otherwise.

範例

Example #1 RarException::isUsingExceptions() example

<?php
//The default is not to use exceptions
var_dump(RarException::isUsingExceptions());
?>

上例的輸出類似於:

bool(false)

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top