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
- class \Symfony\Component\Serializer\Exception\RuntimeException extends \Symfony\Component\Serializer\Exception\RuntimeException implements \Symfony\Component\Serializer\Exception\ExceptionInterface
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\ExceptionView 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 |