Swat/SwatError.php
public static function handle($errno, $errstr, $errfile, $errline)
    {
        // only handle error if error reporting is not suppressed
        if (error_reporting() != 0) {
            $error = new SwatError($errno, $errstr, $errfile, $errline);
            $error->process();
        }
    }
public static function handle($errno, $errstr, $errfile, $errline)
    {
        // only handle error if error reporting is not suppressed
        if (error_reporting() != 0) {
            $error = new SwatError($errno, $errstr, $errfile, $errline);
            $error->process();
        }
    }
public static function handle ( $ errno , $ errstr , $ errfile , $ errline ) { // only handle error if error reporting is not suppressed if ( error_reporting ( ) != 0 ) { $ error = new SwatError ( $ errno , $ errstr , $ errfile , $ errline ) ; $ error -> process ( ) ; } }
Handles an error

When an error occurs, a SwatError object is created and processed.

@param integer $errno the severity code of the handled error.
@param string $errstr the message of the handled error.
@param string $errfile the file ther handled error occurred in.
@param integer $errline the line the handled error occurred at.
Handles an error