‪TYPO3CMS  10.4
TYPO3\CMS\Frontend\Typolink\UnableToLinkException Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Typolink\UnableToLinkException:
TYPO3\CMS\Frontend\Exception TYPO3\CMS\Core\Exception

Public Member Functions

 __construct ($message='', $code=0, \Throwable $previous=null, $linkText='')
 
string getLinkText ()
 

Protected Attributes

string $linkText
 

Detailed Description

Exception which is thrown when a link could not be set

Definition at line 25 of file UnableToLinkException.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Frontend\Typolink\UnableToLinkException::__construct (   $message = '',
  $code = 0,
\Throwable  $previous = null,
  $linkText = '' 
)

Constructor the exception. With an additional parameter for the link text

Parameters
string$message‪[optional] The Exception message to throw.
int$code‪[optional] The Exception code.
\Throwable$previous‪[optional] The previous throwable used for the exception chaining.
string$linkText‪[optional]

Definition at line 39 of file UnableToLinkException.php.

References TYPO3\CMS\Frontend\Typolink\UnableToLinkException\$linkText.

Member Function Documentation

◆ getLinkText()

string TYPO3\CMS\Frontend\Typolink\UnableToLinkException::getLinkText ( )

Returns the link text when the link could not been set

Returns
‪string

Definition at line 50 of file UnableToLinkException.php.

References TYPO3\CMS\Frontend\Typolink\UnableToLinkException\$linkText.

Referenced by TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer\typoLink().

Member Data Documentation

◆ $linkText

string TYPO3\CMS\Frontend\Typolink\UnableToLinkException::$linkText
protected