noalyss Version-9
Functions | Variables
exception.php File Reference

Go to the source code of this file.

Functions

 foo ()
 
 foo2 ()
 

Variables

 print
 
 try
 

Function Documentation

◆ foo()

foo ( )

Definition at line 3 of file exception.php.

4 {
5 print 'foo -1';
6 throw new Exception('Zut',5);
7 print 'foo -2';
8 }
print
Definition: exception.php:25

References print.

Referenced by foo2().

◆ foo2()

foo2 ( )

Definition at line 9 of file exception.php.

10{
11 try {
12 print 'main0';
13 foo();
14 print 'main-1';
15 } catch (Exception $e){
16 print "\n\nExceptionCode = ".$e->getCode()."\n\n";
17 echo $e->getTraceAsString();
18 throw $e;
19 }
20}
21
22try {
23print 'main-2';
24foo2();
25print 'main-3';
26} catch (Exception $e)
27{
28 echo $e->getMessage();
29 echo $e->getTraceAsString();
30}
foo()
Definition: exception.php:3
foo2()
Definition: exception.php:9

References $e, foo(), and print.

+ Here is the call graph for this function:

Variable Documentation

◆ print

print

Definition at line 25 of file exception.php.

Referenced by foo(), and foo2().

◆ try

try
Initial value:
{
print 'main-2'

Definition at line 22 of file exception.php.