The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Search::Null::Error - class for testing WWW::Search clients

SYNOPSIS

  require WWW::Search;

  my $oSearch = new WWW::Search('Null::Error');

  $oSearch->native_query('Makes no difference what you search for...');

  $oSearch->retrieve_some();

  my $oResponse = $oSearch->response;

  # You get an HTTP::Response object with a code of 500

is($oResponse->code, 500, 'did not get a 500 HTTP::Response');

DESCRIPTION

This class is a specialization of WWW::Search that only returns an

error message.

This module might be useful for testing a client program without

actually being connected to any particular search engine.

AUTHOR

Martin Thurn <mthurn@cpan.org>