Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExtraAttributesException.php

function ExtraAttributesException::__construct

File

vendor/symfony/serializer/Exception/ExtraAttributesException.php, line 21

Class

ExtraAttributesException
ExtraAttributesException.

Namespace

Symfony\Component\Serializer\Exception

Code

public function __construct(array $extraAttributes, ?\Throwable $previous = null) {
    $msg = \sprintf('Extra attributes are not allowed ("%s" %s unknown).', implode('", "', $extraAttributes), \count($extraAttributes) > 1 ? 'are' : 'is');
    parent::__construct($msg, 0, $previous);
}
RSS feed
Powered by Drupal