src/Payum/Core/Exception/RequestNotSupportedException.php
public static function createActionNotSupported(ActionInterface $action, $request)
    {
        $exception = new self(sprintf("Action %s is not supported the request %s. %s",
            Humanify::value($action),
            Humanify::request($request),
            implode(" ", static::suggestions($request))
        ));

        $exception->request = $request;
        $exception->action = $action;

        return $exception;
    }
public static function createActionNotSupported(ActionInterface $action, $request)
    {
        $exception = new self(sprintf("Action %s is not supported the request %s. %s",
            Humanify::value($action),
            Humanify::request($request),
            implode(" ", static::suggestions($request))
        ));

        $exception->request = $request;
        $exception->action = $action;

        return $exception;
    }
@param \Payum\Core\Action\ActionInterface $action
@param mixed                              $request

@return RequestNotSupportedException