DB::isError()

DB::isError() -- Determines if a variable is a DB_Error object

Synopsis

boolean isError (mixed $value)

Description

Checks whether a result code from a DB method is a DB_Error object or not.

Parameter

mixed $value

Variable to check

Return value

boolean - TRUE if $value is a DB_Error object

Note

This function should be called statically.

Example