Feature #5236

pg_raise to PHP Object

Added by Moisés P. Sena 07/29/2010 (over 11 years) ago. Updated 07/29/2010 (over 11 years) ago.

Status:NewStart date:07/29/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:

Description

pg_raise to PHP Object

PGRaise::note('Note');
PGRaise::error('Error MSG');

// or

throw new PGException('error');

try {
   PGRaise::error('MSG');

   // or

   throw new PGRaiseError('error');
}
catch(PGRaiseError $e)
{
   PGRaise::note('ERROR IS Code: ' . $e->getCode() . ' - MSG: ' . $e->getMessage());
}

History

#1 Updated by Moisés P. Sena 07/29/2010 (over 11 years) ago

PGRaise::note('Note');
PGRaise::error('Error MSG');

// or
-
throw new PGException('error');-
throw new PGRaiseError('error');

Also available in: Atom PDF