Class SGL_Error

Description

Provides error handling methods.

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


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

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 ()
getAll (line 84)

Returns stack of errors.

PEAR_Error getAll ()
getLast (line 100)
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 110)

Reset error stack to empty array.

boolean reset ()
shift (line 95)

Remove first error off stack.

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

Documentation generated on Tue, 23 Feb 2010 18:14:30 +0000 by phpDocumentor 1.4.3