Class SGL_Error

Description

Provides error handling methods.

Located in /SGL/Error.php (line 46)


	
			
Method Summary
 string constantToString (int $errorCode)
 boolean count ()
 void getLast ()
 PEAR_Error pop ()
 integer push (PEAR_Error $oError)
 boolean reset ()
 PEAR_Error shift ()
 void toString ( $oError)
Methods
constantToString (line 127)

Converts error constants into equivalent strings.

  • return: text representing error type
  • access: public
string constantToString (int $errorCode)
  • int $errorCode: error code
count (line 53)

Returns true if one or more PEAR errors exist on the global stack.

boolean count ()
getLast (line 89)
void getLast ()
pop (line 74)

Pops last error off stack.

PEAR_Error pop ()
push (line 64)

Pushes an error onto stack.

  • return: Returns the new number of elements in the array.
integer push (PEAR_Error $oError)
  • PEAR_Error $oError
reset (line 99)

Reset error stack to empty array.

boolean reset ()
shift (line 84)

Remove first error off stack.

PEAR_Error shift ()
toString (line 106)
void toString ( $oError)
  • $oError

Documentation generated on Wed, 23 Jan 2008 17:04:42 +0000 by phpDocumentor 1.4.1