repo.or.cz
/
AOOS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Only quits on AOOSException::getEcode() == 1
[AOOS.git]
/
index.php
blob
2f19891fd94267712bf5bdc7a23727e2d2be55c3
1
<
?php
2
3
require_once
(
"AOOSCore.php"
);
4
5
$core
=
new
AOOSCore
();
6
7
function
foo
()
8
{
9
try
10
{
11
global
$core
;
12
throw new
AOOSException
(
$core
,
"Name goes here"
);
13
}
14
catch
(
AOOSException
$e
)
15
{
16
return false
;
17
}
18
}
19
20
foo
();
21
22
print
"foo"
;
23
$core
->
printExceptions
();
24
?
>