Tester\Environment::handleException PHP Method

handleException() public static method

public static handleException ( $e )
    public static function handleException($e)
    {
        self::removeOutputBuffers();
        self::$checkAssertions = FALSE;
        echo self::$debugMode ? Dumper::dumpException($e) : "\nError: {$e->getMessage()}\n";
        exit($e instanceof AssertException ? Runner\Job::CODE_FAIL : Runner\Job::CODE_ERROR);
    }