Zeta Components - high quality PHP components

Zeta Components Manual :: Docs For Class ezcTemplateParserException

Template::ezcTemplateParserException

Class ezcTemplateParserException

Exception for failed element parsers.

The exception will display the exact location(s) where the error occured with some extra description of what went wrong.

Source for this file: /Template/src/exceptions/parser_exception.php

Exception
   |
   --ezcBaseException
      |
      --ezcTemplateException
         |
         --ezcTemplateParserException
Version:   //autogen//

Member Variables

public ezcTemplateCursor $errorCursor
Cursor where the error occured.
public string $errorDetails
A more detailed error message which can for instance give hints to the end-user why it failed.
public string $errorMessage
The one-liner error message.
public ezcTemplateSource $source
The source code object which caused the error.
public ezcTemplateCursor $startCursor
Cursor of the parsed line.

Inherited Member Variables

From ezcBaseException
public ezcBaseException::$originalMessage
From Exception (Internal Class)
protected $code
protected $file
protected $line
protected $message
private $previous
private $string
private $trace

Method Summary

public ezcTemplateParserException __construct( $source , $startCursor , $errorCursor , $errorMessage , [ $errorDetails = ""] )
Initialises the exception with the failing elements, parser, source code and error messages.
public string getErrorMessage( )
Generates the error message from member variables and returns it.

Inherited Methods

From ezcTemplateException
public ezcTemplateException ezcTemplateException::__construct()
Constructs a new ezcTemplateException with error message $message.
From ezcBaseException
public ezcBaseException ezcBaseException::__construct()
Constructs a new ezcBaseException with $message
From Exception (Internal Class)
public Exception constructor __construct ( [$message = ], [$code = ], [$previous = ] )
public void getCode ( )
public void getFile ( )
public void getLine ( )
public void getMessage ( )
public void getPrevious ( )
public void getTrace ( )
public void getTraceAsString ( )
public void __clone ( )
public void __toString ( )

Methods

__construct

ezcTemplateParserException __construct( ezcTemplateSource $source , $startCursor , $errorCursor , string $errorMessage , [string $errorDetails = ""] )

Initialises the exception with the failing elements, parser, source code and error messages.

Parameters:
Name Type Description
$source ezcTemplateSource The source code which caused the error, used for file path.
$startCursor ezcTemplateCursor
$errorCursor ezcTemplateCursor
$errorMessage string The error message.
$errorDetails string Extra details for error.
Redefinition of:
Method Description
ezcTemplateException::__construct() Constructs a new ezcTemplateException with error message $message.

getErrorMessage

string getErrorMessage( )

Generates the error message from member variables and returns it.

Documentation generated by phpDocumentor 1.4.3