DB functions can return a DB_Warning. The object contains information about the occured warning. DB_Warning offers the same functions as PEAR_Error.