Class SimpleStickyError

Description

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

Located in /socket.php (line 21)


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

Sets the error to empty.

  • access: public
SimpleStickyError SimpleStickyError ()
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 Sun, 04 May 2008 09:22:10 -0500 by phpDocumentor 1.3.0