Comments: on this page. Click to read or post your own.

Class SimpleStickyError

Description

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

Located in /sapphire/dev/simpletest/socket.php (line 21)


	
			
Direct descendents
Class Description
Basic HTTP response.
SimpleSocket Wrapper for TCP/IP socket.
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.
blog comments powered by Disqus

Documentation generated on Sun, 19 Oct 2008 06:46:17 +1300 by phpDocumentor 1.3.2