public function getExceptionByCode($code)
    {
        $code       = (int) $code;
        $exceptions = array();
        foreach ($this->_exceptions as $e) {
            if ($code == $e->getCode()) {
                $exceptions[] = $e;
            }
        }

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

        return $exceptions;
    }
public function getExceptionByCode($code)
    {
        $code       = (int) $code;
        $exceptions = array();
        foreach ($this->_exceptions as $e) {
            if ($code == $e->getCode()) {
                $exceptions[] = $e;
            }
        }

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

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

@param mixed $code
@return void
Retrieve all exceptions of a given code