From 085161fbc3451f90f991a0731fbaf0931cb07678 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Thu, 7 May 2015 14:16:13 +0300 Subject: Validation exception; user/login endpoint --- .../BotleaguesApi/Exception/ValidationException.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/CamilStaps/BotleaguesApi/Exception/ValidationException.php (limited to 'src/CamilStaps/BotleaguesApi/Exception/ValidationException.php') diff --git a/src/CamilStaps/BotleaguesApi/Exception/ValidationException.php b/src/CamilStaps/BotleaguesApi/Exception/ValidationException.php new file mode 100644 index 0000000..c59ae6f --- /dev/null +++ b/src/CamilStaps/BotleaguesApi/Exception/ValidationException.php @@ -0,0 +1,18 @@ +errors = new MessageBag; + } else { + $this->errors = is_array($errors) ? new MessageBag($errors) : $errors; + } + + parent::__construct(422, $message, $previous, $headers, $code); + } + +} \ No newline at end of file -- cgit v1.2.3