Class AutoCRUD_Error

Description

AutoCRUD Error Class

This class is used to create a new error object, like this

  1. $error = new AutoCRUD_Error;

Located in /error.inc.php (line 37)


	
			
Method Summary
AutoCRUD_Error AutoCRUD_Error ()
string getCode ([mixed $which = 1], integer $count)
string getMessage ([mixed $which = 1], integer $count)
void get_last_errcode ([mixed $which = 1])
string get_last_errmsg ([mixed $which = 1], integer $count)
string get_last_errno ([mixed $which = 1], integer $count)
void setCode (string $code, [integer $count = 1])
void setMessage (string $msg, [integer $count = 1])
array &stack ()
Methods
Constructor AutoCRUD_Error (line 52)

The constructor will also immediately add the object to the error stack

  • access: public
AutoCRUD_Error AutoCRUD_Error ()
getCode (line 104)

Used to retrieve an error code

  • return: the error code
  • access: public
string getCode ([mixed $which = 1], integer $count)
  • integer $count: the index number of the error code
getMessage (line 90)

Used to retrieve an error message

  • return: the error message
  • access: public
string getMessage ([mixed $which = 1], integer $count)
  • integer $count: the index number of the error message
get_last_errcode (line 131)

Alias of the get_last_errno() function

void get_last_errcode ([mixed $which = 1])
get_last_errmsg (line 140)

Used to get the message of the last error that happened

  • return: the error message
  • static: should only be called statically, i.e. AutoCRUD_Error::get_last_errmsg();
string get_last_errmsg ([mixed $which = 1], integer $count)
  • integer $count: the index number of the error code
get_last_errno (line 118)

Used to get the code of the last error that happened

  • return: the error code
  • static: should only be called statically, i.e. AutoCRUD_Error::get_last_errno();
string get_last_errno ([mixed $which = 1], integer $count)
  • integer $count: the index number of the error code
get_last_error (line 154)

Used to get the last error that happened

  • return: the last error
  • static: should only be called statically, i.e. AutoCRUD_Error::get_last_error();
AutoCRUD_Error &get_last_error ()
setCode (line 77)

Used to set an error code

  • access: public
void setCode (string $code, [integer $count = 1])
  • string $code: the error code
  • integer $count: the index number of the error code (if you want to use multiple error codes)
setMessage (line 64)

Used to set an error message

  • access: public
void setMessage (string $msg, [integer $count = 1])
  • string $msg: the error message
  • integer $count: the index number of the error message (if you want to use multiple error messages)
stack (line 170)

Used to get an array of all the errors that have happened

  • return: the errors
  • static: should only be called statically, i.e. AutoCRUD_Error::stack();
array &stack ()

Documentation generated on Wed, 14 Jun 2006 14:08:43 +0200 by phpDocumentor 1.3.0RC4