Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions language/predefined/error/getprevious.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 09c49da6f0167fcdfe53a76e3ea28ecfc0eb337b Maintainer: girgias Status: ready -->
<!-- Reviewed: no -->
<!-- EN-Revision: e565d17dc87b0c5946ea603fbcfb1777316fb6fc Maintainer: lacatoire Status: ready -->
<refentry xml:id="error.getprevious" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Error::getPrevious</refname>
Expand Down Expand Up @@ -46,7 +45,7 @@ class MyCustomError extends Error {}

function doStuff() {
try {
throw new InvalidArgumentError("You are doing it wrong!", 112);
throw new TypeError("You are doing it wrong!", 112);
} catch(Error $e) {
throw new MyCustomError("Something happened", 911, $e);
}
Expand All @@ -67,7 +66,7 @@ try {
<screen>
<![CDATA[
/home/bjori/ex.php:8 Something happened (911) [MyCustomError]
/home/bjori/ex.php:6 You are doing it wrong! (112) [InvalidArgumentError]
/home/bjori/ex.php:6 You are doing it wrong! (112) [TypeError]
]]>
</screen>
</example>
Expand Down
Loading