You are here

class TextimageImagerTokenException in Textimage 7.3

Exception thrown by TextimageImager on token processing failure.

Hierarchy

Expanded class hierarchy of TextimageImagerTokenException

File

classes/TextimageImager.inc, line 521
Textimage - Image processor class.

View source
class TextimageImagerTokenException extends Exception {

  /**
   * The failing token.
   *
   * @var string
   */
  protected $token;

  /**
   * Constructs a TextimageImagerTokenException object.
   */
  public function __construct($token) {
    parent::__construct(t("Textimage token @token could not be resolved.", array(
      '@token' => $token,
    )), 0);
    $this->token = $token;
  }

  /**
   * Gets failing token.
   */
  public function getToken() {
    return $this->token;
  }

}

Members

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