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: seros Status: ready -->
<!-- Reviewed: no -->
<!-- EN-Revision: e565d17dc87b0c5946ea603fbcfb1777316fb6fc Maintainer: seros 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 MiErrorPersonalizado extends Error {}

function hacerCosas() {
try {
throw new InvalidArgumentError("¡Lo está haciendo mal!", 112);
throw new TypeError("¡Lo está haciendo mal!", 112);
} catch(Error $e) {
throw new MiErrorPersonalizado("Ocurrió algo", 911, $e);
}
Expand All @@ -67,7 +66,7 @@ try {
<screen>
<![CDATA[
/home/bjori/ex.php:8 Ocurrió algo (911) [MiErrorPersonalizado]
/home/bjori/ex.php:6 ¡Lo está haciendo mal! (112) [InvalidArgumentError]
/home/bjori/ex.php:6 ¡Lo está haciendo mal! (112) [TypeError]
]]>
</screen>
</example>
Expand Down
Loading