Skip to content

Commit ccf65ad

Browse files
committed
exception: use natural explanatory style
1 parent edf6c27 commit ccf65ad

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Application/exceptions.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,38 @@
1313

1414

1515
/**
16-
* The exception that is thrown when user attempts to terminate the current presenter or application.
17-
* This is special "silent exception" with no error message or code.
16+
* A silent exception used to terminate the current presenter or application.
17+
* Contains no error message or code.
1818
*/
1919
class AbortException extends \LogicException
2020
{
2121
}
2222

23+
2324
/** @internal */
2425
final class SwitchException extends AbortException
2526
{
2627
}
2728

2829

2930
/**
30-
* Application fatal error.
31+
* Fatal error in the application.
3132
*/
3233
class ApplicationException extends \Exception
3334
{
3435
}
3536

3637

3738
/**
38-
* The exception that is thrown when a presenter cannot be loaded.
39+
* The requested presenter cannot be loaded.
3940
*/
4041
class InvalidPresenterException extends \Exception
4142
{
4243
}
4344

4445

4546
/**
46-
* The exception that indicates client error with HTTP code 4xx.
47+
* The request resulted in HTTP 4xx client error.
4748
*/
4849
class BadRequestException extends \LogicException
4950
{
@@ -65,7 +66,7 @@ public function getHttpCode(): int
6566

6667

6768
/**
68-
* Forbidden request exception - access denied.
69+
* Access to the requested resource is forbidden.
6970
*/
7071
class ForbiddenRequestException extends BadRequestException
7172
{

0 commit comments

Comments
 (0)