Search for onException

  1. Search 7.x for onException
  2. Search 9.5.x for onException
  3. Search 8.9.x for onException
  4. Search 10.3.x for onException
  5. Other projects
Title Object type File name Summary
AuthenticationSubscriber::onExceptionAccessDenied function core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php Detect disallowed authentication methods on access denied exceptions.
AuthenticationSubscriber::onExceptionSendChallenge function core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php Respond with a challenge on access denied exceptions if appropriate.
BadPluginDefinitionException class core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php Defines a class for bad plugin definition exceptions.
BadPluginDefinitionException.php file core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php
BadPluginDefinitionException::__construct function core/modules/migrate/src/Plugin/Exception/BadPluginDefinitionException.php Constructs a BadPluginDefinitionException.
ConfigActionException class core/lib/Drupal/Core/Config/Action/ConfigActionException.php @internal
This API is experimental.
ConfigActionException.php file core/lib/Drupal/Core/Config/Action/ConfigActionException.php
ContentEntityBaseUnitTest::testSetNewRevisionException function core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php @covers ::setNewRevision
CronRunTest::testCronExceptions function core/modules/system/tests/src/Functional/System/CronRunTest.php Make sure exceptions thrown on hook_cron() don't affect other modules.
DateTimeIso8601NormalizerTest::testDenormalizeNoTargetInstanceOrFieldDefinitionException function core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php Tests the denormalize function with incomplete serialization context.
DefaultExceptionSubscriber::onException function core/modules/jsonapi/src/EventSubscriber/DefaultExceptionSubscriber.php Handles errors for this subscriber.
DiscoveryTraitTest::providerDoGetDefinitionException function core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php Data provider for testDoGetDefinitionException()
DiscoveryTraitTest::testDoGetDefinitionException function core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php @covers ::doGetDefinition
@dataProvider providerDoGetDefinitionException
@uses \Drupal\Component\Plugin\Exception\PluginNotFoundException
DiscoveryTraitTest::testGetDefinitionException function core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php @covers ::getDefinition
@dataProvider providerDoGetDefinitionException
@uses \Drupal\Component\Plugin\Exception\PluginNotFoundException
DocParserTest::testAnnotationEnumInvalidLiteralDeclarationException function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DocParserTest::testAnnotationEnumInvalidTypeDeclarationException function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php
DriverSpecificSchemaTestBase::tryInsertExpectsIntegrityConstraintViolationException function core/tests/Drupal/KernelTests/Core/Database/DriverSpecificSchemaTestBase.php Tries to insert a value that throws an IntegrityConstraintViolationException.
EntityValidationException class core/modules/migrate/src/Exception/EntityValidationException.php To throw when an entity generated during the import is not valid.
EntityValidationException.php file core/modules/migrate/src/Exception/EntityValidationException.php
EntityValidationException::$violations property core/modules/migrate/src/Exception/EntityValidationException.php The list of violations generated during the entity validation.
EntityValidationException::getViolationMessages function core/modules/migrate/src/Exception/EntityValidationException.php Returns the list of violation messages.
EntityValidationException::getViolations function core/modules/migrate/src/Exception/EntityValidationException.php Returns the list of violations generated during the entity validation.
EntityValidationException::MESSAGES_SEPARATOR constant core/modules/migrate/src/Exception/EntityValidationException.php The separator for combining multiple messages into a single string.
EntityValidationException::__construct function core/modules/migrate/src/Exception/EntityValidationException.php EntityValidationException constructor.
ExceptionDetectNeedsInstallSubscriber::onException function core/lib/Drupal/Core/EventSubscriber/ExceptionDetectNeedsInstallSubscriber.php Handles errors for this subscriber.
ExceptionHandler::handleExecutionException function core/modules/mysql/src/Driver/Database/mysql/ExceptionHandler.php Handles exceptions thrown during execution of statement objects.
ExceptionHandler::handleExecutionException function core/lib/Drupal/Core/Database/ExceptionHandler.php Handles exceptions thrown during execution of statement objects.
ExceptionLoggingSubscriber::onException function core/lib/Drupal/Core/EventSubscriber/ExceptionLoggingSubscriber.php Log all exceptions.
ExtractorTest::testCreateIconExceptionTemplate function core/tests/Drupal/Tests/Core/Theme/Icon/Plugin/ExtractorTest.php Test the IconExtractorBase:createIcon method with Exception.
FileValidationException class core/modules/file/src/Upload/FileValidationException.php Provides an exception for upload validation errors.
FileValidationException.php file core/modules/file/src/Upload/FileValidationException.php
FileValidationException::$errors property core/modules/file/src/Upload/FileValidationException.php The validation errors.
FileValidationException::$fileName property core/modules/file/src/Upload/FileValidationException.php The file name.
FileValidationException::getErrors function core/modules/file/src/Upload/FileValidationException.php Gets the errors.
FileValidationException::getFilename function core/modules/file/src/Upload/FileValidationException.php Gets the file name.
FileValidationException::__construct function core/modules/file/src/Upload/FileValidationException.php Constructs a new FileValidationException.
FinalExceptionSubscriber::onException function core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php Handles exceptions for this subscriber.
FinalExceptionSubscriberTest::testOnExceptionWithUnknownFormat function core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php @covers ::onException
FormAjaxSubscriber::onException function core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php Catches a form AJAX exception and build a response from it.
FormAjaxSubscriberTest::testOnException function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::onException
FormAjaxSubscriberTest::testOnExceptionBrokenPostRequest function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::onException
FormAjaxSubscriberTest::testOnExceptionNestedException function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::onException
@covers ::getFormAjaxException
FormAjaxSubscriberTest::testOnExceptionNestedWrongException function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::getFormAjaxException
FormAjaxSubscriberTest::testOnExceptionNewBuildId function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::onException
FormAjaxSubscriberTest::testOnExceptionOtherClass function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::onException
FormAjaxSubscriberTest::testOnExceptionResponseBuilderException function core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php @covers ::onException
HttpExceptionSubscriberBase::onException function core/lib/Drupal/Core/EventSubscriber/HttpExceptionSubscriberBase.php Handles errors for this subscriber.
IconPackManagerKernelTest::testProcessDefinitionExceptionName function core/tests/Drupal/KernelTests/Core/Theme/Icon/IconPackManagerKernelTest.php Test the IconPackManager::processDefinition method with exception.
IconPackManagerKernelTest::testProcessDefinitionExceptionRequired function core/tests/Drupal/KernelTests/Core/Theme/Icon/IconPackManagerKernelTest.php Test the IconPackManager::processDefinition method with exception.
IncompleteLibraryDefinitionException class core/lib/Drupal/Core/Asset/Exception/IncompleteLibraryDefinitionException.php Defines a custom exception if a library has no CSS/JS/JS setting specified.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.