aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/Posts/Exceptions/PostNotFoundException.php
diff options
context:
space:
mode:
Diffstat (limited to 'api/Posts/Exceptions/PostNotFoundException.php')
-rw-r--r--api/Posts/Exceptions/PostNotFoundException.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/api/Posts/Exceptions/PostNotFoundException.php b/api/Posts/Exceptions/PostNotFoundException.php
new file mode 100644
index 0000000..2f9c55d
--- /dev/null
+++ b/api/Posts/Exceptions/PostNotFoundException.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Api\Posts\Exceptions;
+
+use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
+
+class PostNotFoundException extends NotFoundHttpException
+{
+ public function __construct()
+ {
+ parent::__construct('The post was not found.');
+ }
+}