Class TTemplateException

Description

TTemplateException class

TTemplateException represents an exception caused by invalid template syntax.

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TException.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.1

Located in /Exceptions/TException.php (line 224)

Exception
   |
   --TException
      |
      --TSystemException
         |
         --TConfigurationException
            |
            --TTemplateException
Method Summary
integer getLineNumber ()
string getTemplateFile ()
string getTemplateSource ()
void setLineNumber (integer $value)
void setTemplateFile (string $value)
void setTemplateSource (string $value)
Variables

Inherited Variables

Inherited from TException

TException::$_messageCache

Inherited from Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace
Methods
getLineNumber (line 265)
  • return: the line number at which the template has error
  • access: public
integer getLineNumber ()
getTemplateFile (line 249)
  • return: the template file that causes the exception. This could be empty if the template is an embedded template. In this case, use TemplateSource to obtain the actual template content.
  • access: public
string getTemplateFile ()
getTemplateSource (line 233)
  • return: the template source code that causes the exception. This is empty if TemplateFile is not empty.
  • access: public
string getTemplateSource ()
setLineNumber (line 273)
  • access: public
void setLineNumber (integer $value)
  • integer $value: the line number at which the template has error
setTemplateFile (line 257)
  • access: public
void setTemplateFile (string $value)
  • string $value: the template file that causes the exception
setTemplateSource (line 241)
  • access: public
void setTemplateSource (string $value)
  • string $value: the template source code that causes the exception

Inherited Methods

Inherited From TException

TException::__construct()
TException::getErrorCode()
TException::getErrorMessage()
TException::getErrorMessageFile()
TException::setErrorCode()
TException::setErrorMessage()
TException::translateErrorMessage()

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

Documentation generated on Mon, 25 Jun 2012 14:38:12 +0200 by phpDocumentor 1.4.3