src/Api/Requester.php
private function getExceptionClass(string $apiError): string
    {
        if ($this->exceptionNamespace) {
            $class = $this->exceptionNamespace.'\\'.$apiError.'Exception';

            if (\class_exists($class)) {
                return $class;
            }
        }

        $class = '\\Contentful\\Core\\Exception\\'.$apiError.'Exception';

        return \class_exists($class) ? $class : Exception::class;
    }
private function getExceptionClass(string $apiError): string
    {
        if ($this->exceptionNamespace) {
            $class = $this->exceptionNamespace.'\\'.$apiError.'Exception';

            if (\class_exists($class)) {
                return $class;
            }
        }

        $class = '\\Contentful\\Core\\Exception\\'.$apiError.'Exception';

        return \class_exists($class) ? $class : Exception::class;
    }
private function getExceptionClass ( string $ apiError ) : string { if ( $ this -> exceptionNamespace ) { $ class = $ this -> exceptionNamespace . '\\' . $ apiError . 'Exception' ; if ( \ class_exists ( $ class ) ) { return $ class ; } } $ class = '\\Contentful\\Core\\Exception\\' . $ apiError . 'Exception' ; return \ class_exists ( $ class ) ? $ class : Exception :: class ; }
Returns the FQCN of an exception class to be used for the given API error.

@param string $apiError

@return string
Returns the FQCN of an exception class to be used for the given API error .