Skip to content

Commit ad09f4c

Browse files
committed
unify exception usages
1 parent 041cf46 commit ad09f4c

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

book/internals.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,12 +177,12 @@ Event):
177177
#. Listeners of the ``kernel.terminate`` event can perform tasks after the
178178
Response has been served.
179179

180-
If an Exception is thrown during processing, the ``kernel.exception`` is
181-
notified and listeners are given a chance to convert the Exception to a
180+
If an exception is thrown during processing, the ``kernel.exception`` is
181+
notified and listeners are given a chance to convert the exception into a
182182
Response. If that works, the ``kernel.response`` event is notified; if not, the
183183
Exception is re-thrown.
184184

185-
If you don't want Exceptions to be caught (for embedded requests for
185+
If you don't want exceptions to be caught (for embedded requests for
186186
instance), disable the ``kernel.exception`` event by passing ``false`` as the
187187
third argument to the ``handle()`` method.
188188

@@ -396,7 +396,7 @@ forwards the ``Request`` to a given Controller (the value of the
396396
``class::method`` notation).
397397

398398
A listener on this event can create and set a ``Response`` object, create
399-
and set a new ``Exception`` object, or do nothing::
399+
and set a new ``Exception`` object or do nothing::
400400

401401
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
402402
use Symfony\Component\HttpFoundation\Response;

components/console/helpers/dialoghelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ convenient for passwords::
9595
When you ask for a hidden response, Symfony will use either a binary, change
9696
stty mode or use another trick to hide the response. If none is available,
9797
it will fallback and allow the response to be visible unless you pass ``false``
98-
as the third argument like in the example above. In this case, a RuntimeException
98+
as the third argument like in the example above. In this case, a ``RuntimeException``
9999
would be thrown.
100100

101101
Validating the Answer

cookbook/bundles/best_practices.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Commands, Helpers, Listeners, and Controllers.
168168
Classes that connect to the event dispatcher should be suffixed with
169169
``Listener``.
170170

171-
Exceptions classes should be stored in an ``Exception`` sub-namespace.
171+
Exception classes should be stored in an ``Exception`` sub-namespace.
172172

173173
Vendors
174174
-------

cookbook/console/logging.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ output and process it. This can be especially handful if you already have
1414
some existing setup for aggregating and analyzing Symfony logs.
1515

1616
There are basically two logging cases you would need:
17-
* Manually logging some information from your command;
18-
* Logging uncaught Exceptions.
17+
18+
* Manually logging some information from your command;
19+
* Logging uncaught exceptions.
1920

2021
Manually Logging from a Console Command
2122
---------------------------------------

cookbook/email/spool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Spool Using Memory
2020

2121
When you use spooling to store the emails to memory, they will get sent right
2222
before the kernel terminates. This means the email only gets sent if the whole
23-
request got executed without any unhandled Exception or any errors. To configure
23+
request got executed without any unhandled exception or any errors. To configure
2424
swiftmailer with the memory option, use the following configuration:
2525

2626
.. configuration-block::

cookbook/service_container/event_listener.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ component and can be viewed in the :class:`Symfony\\Component\\HttpKernel\\Kerne
1010

1111
To hook into an event and add your own custom logic, you have to create
1212
a service that will act as an event listener on that event. In this entry,
13-
you will create a service that will act as an Exception Listener, allowing
13+
you will create a service that will act as an exception listener, allowing
1414
you to modify how exceptions are shown by your application. The ``KernelEvents::EXCEPTION``
1515
event is just one of the core kernel events::
1616

0 commit comments

Comments
 (0)