Home
last modified time | relevance | path

Searched refs:exception (Results 51 – 75 of 852) sorted by relevance

12345678910>>...35

/PHP-8.1/ext/standard/tests/assert/
H A Dassert_basic6.phpt18 } catch (AssertionError $exception) {
19 echo $exception->getMessage() . "\n";
29 } catch (AssertionError $exception) {
30 echo $exception->getMessage() . "\n";
/PHP-8.1/Zend/tests/try/
H A Dtry_finally_012.phpt2 Try finally (exception in "return" statement)
17 echo "exception in foo\n";
26 echo "exception in main\n";
31 exception in main
/PHP-8.1/ext/date/tests/
H A DDatePeriod_wrong_recurrence_on_constructor.phpt7 } catch (Exception $exception) {
8 echo $exception->getMessage(), "\n";
13 } catch (Exception $exception) {
14 echo $exception->getMessage(), "\n";
H A Ddate_sunrise_and_sunset_error.phpt8 } catch (ValueError $exception) {
9 echo $exception->getMessage() . "\n";
14 } catch (ValueError $exception) {
15 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/gmp/tests/
H A Dgmp_pow2.phpt14 } catch (ValueError $exception) {
15 echo $exception->getMessage() . "\n";
20 } catch (ValueError $exception) {
21 echo $exception->getMessage() . "\n";
/PHP-8.1/Zend/tests/function_arguments/
H A Dvariadic_argument_type_error.phpt10 } catch (TypeError $exception) {
11 echo $exception->getMessage() . "\n";
16 } catch (TypeError $exception) {
17 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/standard/tests/general_functions/
H A Dbug25038.phpt2 Bug #25038 (call_user_func issues warning if function throws exception)
8 throw new Exception("This is an exception from bar({$x}).");
29 This is an exception from bar(first try).
30 This is an exception from bar(second try).
H A Dputenv.phpt20 } catch (ValueError $exception) {
21 echo $exception->getMessage() . "\n";
26 } catch (ValueError $exception) {
27 echo $exception->getMessage() . "\n";
/PHP-8.1/tests/lang/
H A Dthrow_variation_001.phpt2 Catching an exception thrown from an included file
9 echo "caught exception\n";
14 caught exception
/PHP-8.1/ext/ftp/tests/
H A D005.phpt24 } catch (ValueError $exception) {
25 echo $exception->getMessage() . "\n";
30 } catch (ValueError $exception) {
31 echo $exception->getMessage() . "\n";
36 } catch (ValueError $exception) {
37 echo $exception->getMessage() . "\n";
46 } catch (ValueError $exception) {
47 echo $exception->getMessage() . "\n";
52 } catch (ValueError $exception) {
53 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/dom/tests/
H A DDOMDocument_load_error6.phpt11 } catch (ValueError $exception) {
12 echo $exception->getMessage() . "\n";
17 } catch (ValueError $exception) {
18 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/standard/tests/password/
H A Dpassword_bcrypt_errors.phpt8 } catch (ValueError $exception) {
9 echo $exception->getMessage() . "\n";
14 } catch (ValueError $exception) {
15 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/simplexml/tests/
H A Dcurrent_error.phpt19 } catch (Error $exception) {
20 echo $exception->getMessage() . "\n";
29 } catch (Error $exception) {
30 echo $exception->getMessage() . "\n";
H A Dkey_error.phpt19 } catch (Error $exception) {
20 echo $exception->getMessage() . "\n";
29 } catch (Error $exception) {
30 echo $exception->getMessage() . "\n";
H A D012.phpt17 } catch (ValueError $exception) {
18 echo $exception->getMessage() . "\n";
31 } catch (ValueError $exception) {
32 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/mysqli/tests/
H A Dbug36420.phpt20 } catch (Error $exception) {
21 echo $exception->getMessage() . "\n";
27 } catch (Error $exception) {
28 echo $exception->getMessage() . "\n";
H A Dbug36802.phpt20 } catch (Error $exception) {
21 echo $exception->getMessage() . "\n";
29 } catch (Error $exception) {
30 echo $exception->getMessage() . "\n";
/PHP-8.1/Zend/tests/throw/
H A D001.phpt106 throw new Exception("exception 1"),
107 throw new Exception("exception 2")
134 throw $exception = new Exception('throw $exception = new Exception();');
136 var_dump($exception->getMessage());
139 $exception = null;
140 throw $exception ??= new Exception('throw $exception ??= new Exception();');
142 var_dump($exception->getMessage());
167 string(11) "exception 1"
171 string(35) "throw $exception = new Exception();"
172 string(37) "throw $exception ??= new Exception();"
/PHP-8.1/ext/sysvshm/tests/
H A D003.phpt20 } catch (Error $exception) {
21 echo $exception->getMessage() . "\n";
26 } catch (Error $exception) {
27 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/standard/tests/array/
H A Darray_map_001.phpt9 throw new exception(1);
15 var_dump("exception caught!");
21 string(17) "exception caught!"
/PHP-8.1/ext/intl/tests/
H A Dcalendar_toDateTime_error.phpt14 var_dump("exception: {$e->getMessage()}");
43 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception
44 string(77) "exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/Unknown)"
46 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
49 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception
52 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
/PHP-8.1/Zend/tests/fibers/
H A Dcatch.phpt2 Catch exception thrown into fiber
9 } catch (Exception $exception) {
10 var_dump($exception->getMessage());
/PHP-8.1/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_getDefaultValue_Internal.phpt11 } catch (ReflectionException $exception) {
12 echo $exception->getMessage() . "\n";
24 } catch (ReflectionException $exception) {
25 echo $exception->getMessage() . "\n";
H A DReflectionParameter_isDefaultValueConstant_Internal.phpt11 } catch (ReflectionException $exception) {
12 echo $exception->getMessage() . "\n";
24 } catch (ReflectionException $exception) {
25 echo $exception->getMessage() . "\n";
/PHP-8.1/ext/standard/tests/versioning/
H A Dversion_compare_invalid_operator.phpt2 Ensures an exception is thrown if versions are compared with an invalid operator
9 } catch (ValueError $exception) {
10 echo $exception->getMessage() . "\n";

Completed in 28 milliseconds

12345678910>>...35