You are here

class InvalidStateException in Purge 8.3

Thrown when the incoming or outgoing object states are not valid.

InvalidStateException gets thrown in the following circumstances:

1) in \Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface::setState when the $state parameter doesn't match any of the constants defined in \Drupal\purge\Plugin\Purge\Invalidation\InvStatesInterface.

2) When a \Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface object gets fed to the purger service that isn't a valid condition.

2) When a purger plugin doesn't set a valid state after processing the \Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface object.

Hierarchy

  • class \Drupal\purge\Plugin\Purge\Invalidation\Exception\InvalidStateException extends \Drupal\purge\Plugin\Purge\Invalidation\Exception\Exception

Expanded class hierarchy of InvalidStateException

See also

\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface::setState

2 files declare their use of InvalidStateException
InvalidationBase.php in src/Plugin/Purge/Invalidation/InvalidationBase.php
PluginTestBase.php in tests/src/Kernel/Invalidation/PluginTestBase.php

File

src/Plugin/Purge/Invalidation/Exception/InvalidStateException.php, line 22

Namespace

Drupal\purge\Plugin\Purge\Invalidation\Exception
View source
class InvalidStateException extends \Exception {

}

Members