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 SimpleFileSocket
 class SimpleSocket Wrapper for TCP/IP socket.
 class SimpleHttpResponse Basic HTTP response.
Method Summary
 SimpleStickyError __construct ()
 void clearError ()
 string getError ()
 boolean isError ()
 void setError (string $error)
Methods
Constructor __construct (line 28)

Sets the error to empty.

  • access: public
SimpleStickyError __construct ()

Redefined in descendants as:
clearError (line 64)

Resets the error state to no error.

  • access: protected
void clearError ()
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 ()
setError (line 56)

Sets the internal error.

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

Documentation generated on Sun, 31 Oct 2010 16:32:27 -0500 by phpDocumentor 1.4.3