TextimageTokenException.php in Textimage 8.3
Same filename and directory in other branches
Namespace
Drupal\textimageFile
src/TextimageTokenException.phpView source
<?php
namespace Drupal\textimage;
/**
* Exception thrown by Textimage factory on token processing failure.
*/
class TextimageTokenException extends \Exception {
/**
* The failing token.
*
* @var string
*/
protected $token;
/**
* Constructs a TextimageImagerTokenException object.
*/
public function __construct($token, \Exception $previous = NULL) {
parent::__construct("Textimage token {$token} could not be resolved.", 0, $previous);
$this->token = $token;
}
/**
* Gets failing token.
*/
public function getToken() {
return $this->token;
}
}
Classes
Name | Description |
---|---|
TextimageTokenException | Exception thrown by Textimage factory on token processing failure. |