src/Exceptions/Exception.php
public function setErrors(MessageBag $errors)
    {
        $this->errors = $errors;

        // Add status message to meta array
        if (!$errors->isEmpty()) {
            $this->addMeta(['errors' => $errors->all()]);
        }

        return $this;
    }
public function setErrors(MessageBag $errors)
    {
        $this->errors = $errors;

        // Add status message to meta array
        if (!$errors->isEmpty()) {
            $this->addMeta(['errors' => $errors->all()]);
        }

        return $this;
    }
public function setErrors ( MessageBag $ errors ) { $ this -> errors = $ errors ; // Add status message to meta array if ( ! $ errors -> isEmpty ( ) ) { $ this -> addMeta ( [ 'errors' => $ errors -> all ( ) ] ) ; } return $ this ; }
Set a message bag of errors.

@author Morten Rugaard <moru@nodes.dk>

@param \Illuminate\Support\MessageBag $errors

@return $this
Set a message bag of errors .