Project

General

Profile

Feature #5236

pg_raise to PHP Object

Added by Moisés P. Sena over 14 years ago. Updated over 14 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
07/29/2010
Due date:
% Done:

0%

Estimated time:
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());
}

Also available in: Atom PDF