You are here

public function UserDeveloperConversionNoStorageFormatterFoundException::__construct in Apigee Edge 8

UserDeveloperConversionNoStorageFormatterFoundException constructor.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: Field definition.

string $message: Exception message.

int|null $code: Error code.

\Throwable|null $previous: Previous exception.

File

src/Exception/UserDeveloperConversionNoStorageFormatterFoundException.php, line 49

Class

UserDeveloperConversionNoStorageFormatterFoundException
Thrown when no storage formatter found for a user field.

Namespace

Drupal\apigee_edge\Exception

Code

public function __construct(FieldDefinitionInterface $field_definition, string $message = 'No available storage formatter found for "@field_type" field type.', ?int $code = NULL, ?\Throwable $previous = NULL) {
  $message = strtr($message, [
    '@field_type' => $field_definition
      ->getType(),
  ]);
  $this->fieldDefinition = $field_definition;
  parent::__construct($message, $code, $previous);
}