Swat/exceptions/SwatException.php
public static function handle($e)
    {
        // wrap other exceptions in SwatExceptions
        if (!$e instanceof SwatException) {
            $e = new SwatException($e);
        }

        $e->process(true, false);
    }
public static function handle($e)
    {
        // wrap other exceptions in SwatExceptions
        if (!$e instanceof SwatException) {
            $e = new SwatException($e);
        }

        $e->process(true, false);
    }
public static function handle ( $ e ) { // wrap other exceptions in SwatExceptions if ( ! $ e instanceof SwatException ) { $ e = new SwatException ( $ e ) ; } $ e -> process ( true , false ) ; }
Handles an exception

Wraps a generic exception in a SwatException object and process the
SwatException object.

@param Throwable $e the exception to handle.
Handles an exception