ThumbBase::triggerError PHP Method

triggerError() protected method

Also sets $this->hasError to true, so even if the exceptions are caught, we don't attempt to proceed with any other functions
protected triggerError ( string $errorMessage )
$errorMessage string
    protected function triggerError($errorMessage)
    {
        $this->hasError = true;
        $this->errorMessage = $errorMessage;
        throw new Exception($errorMessage);
    }