public function tryAnException()
    {
        try {
            $iterator = $this->endpoint->listRecords('foobardoesnotexist');
            $iterator->current();
        } catch (\Phpoaipmh\Exception\OaipmhException $e) {
            throw $e;
        }
    }
public function tryAnException()
    {
        try {
            $iterator = $this->endpoint->listRecords('foobardoesnotexist');
            $iterator->current();
        } catch (\Phpoaipmh\Exception\OaipmhException $e) {
            throw $e;
        }
    }
public function tryAnException ( ) { try { $ iterator = $ this -> endpoint -> listRecords ( 'foobardoesnotexist' ) ; $ iterator -> current ( ) ; } catch ( \ Phpoaipmh \ Exception \ OaipmhException $ e ) { throw $ e ; } }
Throws a deliberate exception for a non existing schema.

@return void
Throws a deliberate exception for a non existing schema .