Class yii\apidoc\helpers\BrokenLinkException

Inheritanceyii\apidoc\helpers\BrokenLinkException » yii\base\Exception
Available since extension's version2.1.3
Source Code https://github.com/yiisoft/yii2-apidoc/blob/master/helpers/BrokenLinkException.php

BrokenLinkException represents a broken API link.

Property Details

Hide inherited properties

$context public property
$object public property
public string $object null

Method Details

Hide inherited methods

__construct() public method

Constructor.

public void __construct ( $object, $context )
$object string
$context yii\apidoc\models\TypeDoc|null

                public function __construct($object, $context)
{
    $this->object = $object;
    $this->context = $context;
    $message = 'broken link to ' . $object . (($context !== null) ? ' in ' . $context->name : '');
    parent::__construct($message);
}

            
getName() public method

public string getName ( )
return string

The user-friendly name of this exception

                public function getName()
{
    return 'Broken Link';
}