Google\Cloud\Dev\DocGenerator\Parser\CodeParser::buildExceptions PHP Method

buildExceptions() private method

private buildExceptions ( $exceptions )
    private function buildExceptions($exceptions)
    {
        if (count($exceptions) === 0) {
            return $exceptions;
        }
        $exceptionsArray = [];
        foreach ($exceptions as $exception) {
            $exceptionsArray[] = ['type' => $exception->getType(), 'description' => $exception->getDescription()];
        }
        return $exceptionsArray;
    }