Class SimpleErrorThrower

Description

A type of SimpleMethodAction.

Stashes an error for emitting later.

Located in /mock_objects.php (line 601)


	
			
Variable Summary
 mixed $_error
 mixed $_severity
Method Summary
 SimpleErrorThrower SimpleErrorThrower (string $error, integer $severity)
 null &act ()
Variables
mixed $_error (line 602)
mixed $_severity (line 603)
Methods
Constructor SimpleErrorThrower (line 611)

Stashes an error to throw later.

  • access: public
SimpleErrorThrower SimpleErrorThrower (string $error, integer $severity)
  • string $error: Error message.
  • integer $severity: PHP error constant, e.g E_USER_ERROR.
act (line 621)

Triggers the stashed error.

  • return: The usual PHP4.4 shenanigans are needed here.
  • access: public
null &act ()

Documentation generated on Sun, 04 May 2008 09:21:48 -0500 by phpDocumentor 1.3.0