public function getExceptionByType($type)
    {
        $exceptions = array();
        foreach ($this->_exceptions as $e) {
            if ($e instanceof $type) {
                $exceptions[] = $e;
            }
        }

        if (empty($exceptions)) {
            $exceptions = false;
        }

        return $exceptions;
    }
public function getExceptionByType($type)
    {
        $exceptions = array();
        foreach ($this->_exceptions as $e) {
            if ($e instanceof $type) {
                $exceptions[] = $e;
            }
        }

        if (empty($exceptions)) {
            $exceptions = false;
        }

        return $exceptions;
    }
public function getExceptionByType ( $ type ) { $ exceptions = array ( ) ; foreach ( $ this -> _exceptions as $ e ) { if ( $ e instanceof $ type ) { $ exceptions [ ] = $ e ; } } if ( empty ( $ exceptions ) ) { $ exceptions = false ; } return $ exceptions ; }
Retrieve all exceptions of a given type

@param  string $type
@return false|array
Retrieve all exceptions of a given type