Path

ez components / documentation / api reference / latest / consoletools


eZ Components latest

ConsoleTools: ezcConsoleArgumentAlreadyRegisteredException

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcConsoleArgumentAlreadyRegisteredException

There is already an argument registered with the given name or at the given place. [source]

Parents

Exception
   |
   --ezcBaseException
      |
      --ezcConsoleException
         |
         --ezcConsoleArgumentAlreadyRegisteredException

Constants

NAMED = 1 The name of the argument is already in use.
ORDERED = 2 The position of the argument is already in use. Unset the position first and the re-register.

Inherited Member Variables

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

Method Summary

public void __construct( $offset, $type )
Creates a new exception object.

Inherited Methods

From ezcBaseException :
public ezcBaseException ezcBaseException::__construct()
Constructs a new ezcBaseException with $message
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

void __construct( int $offset, int $type )
Creates a new exception object.
The $type parameter can either be ezcConsoleArgumentAlreadyRegisteredException::NAMED or ezcConsoleArgumentAlreadyRegisteredException::ORDERED, indicating if the name of the parameter or its place are already taken.

Parameters

Name Type Description
$offset int Offset of the already reagistered argument.
$type int Type of the offset.

Redefinition of

Method Description
ezcBaseException::__construct() Constructs a new ezcBaseException with $message

Last updated: Mon, 21 Dec 2009