Class StickyError

Description

Stashes an error for later. Useful for constructors until PHP gets exceptions.

Located in /libraries/pear/simpletest/socket.php (line 21)


	
			
Direct descendents
Class Description
 class SimpleHttpResponse Basic HTTP response.
 class SimpleSocket Wrapper for TCP/IP socket.
Variable Summary
 mixed $_error
Method Summary
 StickyError StickyError ()
 string getError ()
 boolean isError ()
 void _clearError ()
 void _setError (string $error)
Variables
mixed $_error = 'Constructor not chained' (line 22)
Methods
Constructor StickyError (line 28)

Sets the error to empty.

  • access: public
StickyError StickyError ()
getError (line 47)

Accessor for an outstanding error.

  • return: Empty string if no error otherwise the error message.
  • access: public
string getError ()
isError (line 37)

Test for an outstanding error.

  • return: True if there is an error.
  • access: public
boolean isError ()
_clearError (line 64)

Resets the error state to no error.

  • access: protected
void _clearError ()
_setError (line 56)

Sets the internal error.

  • access: protected
void _setError (string $error)
  • string $error: Error message to stash.

Documentation generated on Fri, 24 Dec 2004 13:03:26 +0000 by phpDocumentor 1.3.0RC3