Project

General

Profile

Feature #5236

pg_raise to PHP Object

Added by Moisés P. Sena almost 12 years ago. Updated almost 12 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());
}
#1

Updated by Moisés P. Sena almost 12 years ago

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

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

Also available in: Atom PDF