private function generateExceptionsValues($navitiaExceptions)
    {
        $exceptions = array();

        foreach ($navitiaExceptions as $exception) {
            $date = new \DateTime($exception->date);

            $exception->value = $this->translator->trans(
                'global.exceptions.' . strtolower($exception->type),
                array('%date%' => $date->format('d/m/Y')),
                'messages'
            );
            $exceptions[$exception->id] = $exception;
        }

        return $exceptions;
    }