@@ -21,7 +21,7 @@ unexpected places, such as lines of code where exceptions are thrown.
21
21
Stack Traces and Exceptions
22
22
---------------------------
23
23
24
- In PHP, every exception comes with it own stack trace, which is
24
+ In PHP, every exception comes with its own stack trace, which is
25
25
displayed by default if the exception is not caught. When using Symfony,
26
26
such exceptions go through a custom exception handler, which enhances
27
27
them in various ways before displaying them according to the current
@@ -34,7 +34,7 @@ Nested Exceptions
34
34
-----------------
35
35
36
36
When programs get bigger, complexity is often tackled with layers of
37
- architecture that need to be kept separate. For instance, if you have an
37
+ architecture that need to be kept separate. For instance, if you have a
38
38
web application that makes a call to a remote API, it might be good to
39
39
wrap exceptions thrown when making that call with exceptions that have
40
40
special meaning in your domain, and to build appropriate HTTP exceptions
@@ -57,7 +57,7 @@ code and then your code might call it. This means you will always have
57
57
at least 2 parts, very often 3 in your stack traces when using Symfony:
58
58
a part that starts in one of the entrypoints of the framework
59
59
(``bin/console `` or ``public/index.php `` in most cases), and ends when
60
- reaching your code, most times in a command or in an action found under
60
+ reaching your code, most times in a command or in a controller found under
61
61
``src ``. Then, either the exception is thrown in your code or in
62
62
libraries you call. If it is the latter, there should be a third part in
63
63
the stack trace with calls made in files under ``vendor ``. Before
@@ -80,7 +80,7 @@ symfony/symfony`` when reporting a bug for any component.
80
80
Getting Stack Traces with Symfony
81
81
---------------------------------
82
82
83
- Now that we have all this in mind, let us see how to get a Stack trace
83
+ Now that we have all this in mind, let us see how to get a stack trace
84
84
with Symfony.
85
85
86
86
Stack Traces in your Web Browser
0 commit comments