Mysql_Exception __construct(
[string
$message = FALSE], [int
$code = FALSE]
)
|
|
Constructor
Saves arguments to member attributes.
Parameters:
|
string |
$message: |
message (error message) |
|
int |
$code: |
code (error code) |
API Tags:
mixed generateError(
[string
$message = FALSE], [int
$code = FALSE]
)
|
|
Static method for generating a Mysql Exception
Method determines which exception object to return based on error codes. If no message and/or error code is provided method attempts to retrieve message/code from MySQL. Currently the only other exception impleneted is Mysql_Dup_Index_Exception which is returned for MySQL error code 1062.
Parameters:
|
string |
$message: |
message (error message) |
|
int |
$code: |
code (error code) |
API Tags:
| Return: | Mysql_Exception or Mysql_Dup_Index |
| Static: | |
| See: | mysql_errno |
| See: | mysql_error |