PEAR::setErrorHandling() (Previous) (Next) PEAR::popExpect()

View this page in Last updated: Sun, 31 Aug 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

PEAR::expectError()

PEAR::expectError() --  add an error code for non-disabling temporary error handling

Beschreibung

This method is used to tell which errors you expect to get. Expected errors are always returned with error mode PEAR_ERROR_RETURN. Expected error codes are stored in a stack, and this method pushes a new element onto it. The list of expected errors are in effect until they are popped off the stack with the popExpect() method.

Parameter

  • mixed $errorCode - the expected PEAR_Error error code or an array of error codes. If set to '*' every error is expected.

Rückgabewert

integer - the size of the error code stack.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Siehe auch

popExpect()

PEAR::setErrorHandling() (Previous) (Next) PEAR::popExpect()

Download Documentation Last updated: Sun, 31 Aug 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.