0 follower

Final Class Yiisoft\Yii\DataView\Pagination\PaginatorNotSetException

InheritanceYiisoft\Yii\DataView\Pagination\PaginatorNotSetException » RuntimeException
ImplementsYiisoft\FriendlyException\FriendlyExceptionInterface

Exception thrown when attempting to use a pagination widget without setting a paginator.

Method Details

Hide inherited methods

__construct() public method

Creates a new instance with an optional custom message.

public mixed __construct ( string $message '' )
$message string

Custom error message. If empty, use the default message.

                public function __construct(string $message = '')
{
    $message = $message === '' ? $this->getName() : $message;
    parent::__construct($message);
}

            
getName() public method

public string getName ( )

                public function getName(): string
{
    return 'Failed to create widget because "paginator" is not set.';
}

            
getSolution() public method

public string|null getSolution ( )

                public function getSolution(): ?string
{
    return <<<SOLUTION
        You can configure the `paginator` property in the widget configuration. Use either `OffSetPaginator::class`
        or `KeySetPaginator::class` as paginator.
        For more information [see the documentation](https://github.com/yiisoft/data).
    SOLUTION;
}