You are here

public function TextimageTokenException::__construct in Textimage 8.4

Same name and namespace in other branches
  1. 8.3 src/TextimageTokenException.php \Drupal\textimage\TextimageTokenException::__construct()

Constructs a TextimageImagerTokenException object.

File

src/TextimageTokenException.php, line 20

Class

TextimageTokenException
Exception thrown by Textimage factory on token processing failure.

Namespace

Drupal\textimage

Code

public function __construct($token, \Exception $previous = NULL) {
  parent::__construct("Textimage token {$token} could not be resolved.", 0, $previous);
  $this->token = $token;
}