You are here

public function MediaTypeException::__construct in Media entity 8

Construct the exception.

Parameters

string $element: [optional] Name of form element that exception refers to.

string $message: [optional] The Exception message to throw.

int $code: [optional] The Exception code.

\Exception $previous: [optional] The previous exception used for the exception chaining.

File

src/MediaTypeException.php, line 30

Class

MediaTypeException
Generic Plugin exception class to be thrown when no more specific class is applicable.

Namespace

Drupal\media_entity

Code

public function __construct($element = NULL, $message = "", $code = 0, \Exception $previous = NULL) {
  parent::__construct($message, $code, $previous);
  $this->element = $element;
}