You are here

class TextimageTokenException in Textimage 8.4

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

Exception thrown by Textimage factory on token processing failure.

Hierarchy

Expanded class hierarchy of TextimageTokenException

File

src/TextimageTokenException.php, line 8

Namespace

Drupal\textimage
View 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

Namesort descending Modifiers Type Description Overrides
TextimageTokenException::$token protected property The failing token.
TextimageTokenException::getToken public function Gets failing token.
TextimageTokenException::__construct public function Constructs a TextimageImagerTokenException object.