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

Breadcrumb

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

function UnexpectedPropertyException::__construct

File

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

Class

UnexpectedPropertyException
UnexpectedPropertyException.

Namespace

Symfony\Component\Serializer\Exception

Code

public function __construct(string $property, ?\Throwable $previous = null) {
    $msg = \sprintf('Property is not allowed ("%s" is unknown).', $this->property);
    parent::__construct($msg, 0, $previous);
}

API Navigation

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