예제 #1
0
 public function __construct(MessageBag $bag, $message = "", $code = 0, Exception $previous = null)
 {
     $this->bag = $bag;
     if (!$bag->isEmpty()) {
         if (!empty($message)) {
             $message = implode('. ', $message->all());
         }
     }
     parent::__construct($message, $code ?: 403, $previous);
 }
 /**
  * @return bool
  */
 public function isEmpty()
 {
     return $this->messages->isEmpty();
 }