class TextimageTokenException in Textimage 8.4
Same name and namespace in other branches
- 8.3 src/TextimageTokenException.php \Drupal\textimage\TextimageTokenException
Exception thrown by Textimage factory on token processing failure.
Hierarchy
- class \Drupal\textimage\TextimageTokenException extends \Drupal\textimage\Exception
Expanded class hierarchy of TextimageTokenException
File
- src/
TextimageTokenException.php, line 8
Namespace
Drupal\textimageView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TextimageTokenException:: |
protected | property | The failing token. | |
TextimageTokenException:: |
public | function | Gets failing token. | |
TextimageTokenException:: |
public | function | Constructs a TextimageImagerTokenException object. |