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

Breadcrumb

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

class ExtraAttributesException

ExtraAttributesException.

@author Julien DIDIER <julien@didier.io>

Hierarchy

  • class \Symfony\Component\Serializer\Exception\RuntimeException extends \Symfony\Component\Serializer\Exception\RuntimeException implements \Symfony\Component\Serializer\Exception\ExceptionInterface
    • class \Symfony\Component\Serializer\Exception\RuntimeException extends \Symfony\Component\Serializer\Exception\RuntimeException implements \Symfony\Component\Serializer\Exception\ExceptionInterface
      • class \Symfony\Component\Serializer\Exception\ExtraAttributesException extends \Symfony\Component\Serializer\Exception\RuntimeException

Expanded class hierarchy of ExtraAttributesException

2 files declare their use of ExtraAttributesException
AbstractObjectNormalizer.php in vendor/symfony/serializer/Normalizer/AbstractObjectNormalizer.php
DenormalizerInterface.php in vendor/symfony/serializer/Normalizer/DenormalizerInterface.php

File

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

Namespace

Symfony\Component\Serializer\Exception
View source
class ExtraAttributesException extends RuntimeException {
    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);
    }
    
    /**
     * Get the extra attributes that are not allowed.
     */
    public function getExtraAttributes() : array {
        return $this->extraAttributes;
    }

}

Members

Title Sort descending Modifiers Object type Summary
ExtraAttributesException::getExtraAttributes public function Get the extra attributes that are not allowed.
ExtraAttributesException::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal