downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<ErrorExceptionContext options and parameters>
Last updated: Thu, 26 Jun 2008

ErrorException::getSeverity

(PHP 5 >= 5.1.0)

ErrorException::getSeverity — Gets the exception severity

Description

final public int ErrorException::getSeverity ( void )

Returns the severity of the exception.

Parameters

This function has no parameters.

Return Values

Returns the severity level of the exception.

Examples

Example #1 ErrorException() example

<?php
try
{
  
throw new ErrorException("Exception message", 0, 75);
}
catch(ErrorException $e) {
   echo
"This exception severity is: " . $e->getSeverity();
}
?>

The above example will output something similar to:

This exception severity is: 75



add a noteadd a note User Contributed Notes
Gets the exception severity
There are no user contributed notes for this page.




<ErrorExceptionContext options and parameters>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs