Path

ez components / documentation / api reference / 1.1.1 / template


eZ Components 1.1.1

Template: ezcTemplateTstNodeException

[ Tutorial ] [ EBNF ] [ Functions ] [ Syntax ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcTemplateTstNodeException

Exception for problems in parser element code. [source]
Instantiate the exception with one of the class constants, e.g.:
1.  throw new ezcTemplateTstNodeExceptionezcTemplateTstNodeException::NO_FIRST_CHILD );

Parents

Exception
   |
   --ezcTemplateTstNodeException

Constants

NO_FIRST_CHILD = 1 Element has no children, cannot get first child.
NO_LAST_CHILD = 2 Element has no children, cannot get last child.

Inherited Member Variables

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

Method Summary

public ezcTemplateTstNodeException __construct( $type, [$comment = false] )
Initialises the exception with the type of error which automatically generates an exception message.

Inherited Methods

From Exception (Internal Class) :
public Exception constructor __construct ( $message, $code )
public void getCode ( )
public void getFile ( )
public void getLine ( )
public void getMessage ( )
public void getTrace ( )
public void getTraceAsString ( )
public void __clone ( )
public void __toString ( )

Methods

__construct

ezcTemplateTstNodeException __construct( int $type, [string $comment = false] )
Initialises the exception with the type of error which automatically generates an exception message.

Parameters

Name Type Description
$type int The type of element error.
$comment string Optional comment for the error, depends on $type.

Redefinition of

Method Description
Exception::constructor __construct ( $message, $code )  

Last updated: Thu, 01 Nov 2007