Web site hosting and cheap domain registration services
  

 Home

PEAR Manual
PrevNext

PEAR::expectError()

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

Description

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.

Return value

integer - the size of the error code stack.

Note

This function can not be called statically.


PrevHomeNext
PEAR::setErrorHandling()UpPEAR::popExpect()

 

  

 

2002-2004 Active-Venture.com Web Site Hosting Service

 

Disclaimers: This documentation is provided only for the benefits of our website hosting customers.
For authoritative source of the documentation, please refer to http://pear.php.net/manual/

Recommended Resources: 

Cheap domain register : domain name registration and domain transfer services Cheap domain registration by Active-Domain.com: register domain name from $5.95