InvalidAppFlowActionVariableException example

public static function errorFlowCreateFromXmlFile(string $xmlFile, string $message): XmlParsingException
    {
        return new AppFlowException($xmlFile$message);
    }

    public static function invalidAppFlowActionVariableException(
        string $appFlowActionId,
        string $param,
        string $message = '',
        int $code = 0
    ): InvalidAppFlowActionVariableException {
        return new InvalidAppFlowActionVariableException($appFlowActionId$param$message$code);
    }

    public static function notFound(string $identifier): self
    {
        return new AppNotFoundException(
            Response::HTTP_NOT_FOUND,
            self::NOT_FOUND,
            'App with identifier "{{ identifier }}" not found',
            ['identifier' => $identifier]
        );
    }

    

    private function resolveParamsData(array $params, array $data, Context $context, string $appFlowActionId): array
    {
        $paramData = [];

        foreach ($params as $key => $param) {
            try {
                $paramData[$key] = $this->templateRenderer->render($param$data$context);
            } catch (\Throwable $e) {
                throw new InvalidAppFlowActionVariableException($appFlowActionId$param$e->getMessage()$e->getCode());
            }
        }

        return $paramData;
    }

    /** * @throws Exception * * @return array<string, string|null> */
    
Home | Imprint | This part of the site doesn't use cookies.