protected static function getErrors (\Exception $e) {
        $errors = $e->getMessage();
        while ($e = $e->getPrevious()) {
            $errors .= "<br>" . $e->getMessage();
        }

        return $errors;
    }
protected static function getErrors (\Exception $e) {
        $errors = $e->getMessage();
        while ($e = $e->getPrevious()) {
            $errors .= "<br>" . $e->getMessage();
        }

        return $errors;
    }
protected static function getErrors ( \ Exception $ e ) { $ errors = $ e -> getMessage ( ) ; while ( $ e = $ e -> getPrevious ( ) ) { $ errors .= "<br>" . $ e -> getMessage ( ) ; } return $ errors ; }
Grabs all of the Exception messages in a chain

@param \Exception $e

@return string
Grabs all of the Exception messages in a chain