diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/Exceptions/Factory/Blogs/InvalidPostDataException.php b/src/Skobkin/Bundle/PointToolsBundle/Service/Exceptions/Factory/Blogs/InvalidPostDataException.php new file mode 100644 index 0000000..303184c --- /dev/null +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/Exceptions/Factory/Blogs/InvalidPostDataException.php @@ -0,0 +1,30 @@ +post = $post; + + parent::__construct($message, $code, $previous); + } + + /** + * @return Post + */ + public function getPost() + { + return $this->post; + } +} \ No newline at end of file diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/Exceptions/Factory/InvalidUserDataException.php b/src/Skobkin/Bundle/PointToolsBundle/Service/Exceptions/Factory/InvalidUserDataException.php new file mode 100644 index 0000000..9f86ee4 --- /dev/null +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/Exceptions/Factory/InvalidUserDataException.php @@ -0,0 +1,30 @@ +user = $user; + + parent::__construct($message, $code, $previous); + } + + /** + * @return User + */ + public function getUser() + { + return $this->user; + } +} \ No newline at end of file