PEAR::expectError()

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

Synopsis

require_once 'PEAR.php';

integer PEAR::expectError ([mixed $errorCode = '*'])

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

Rückgabewert

integer - the size of the error code stack.

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Siehe auch

popExpect()