WWW::Postini::Exception::UnexpectedResponse - Exception thrown by incorrect


WWW-Postini documentation Contained in the WWW-Postini distribution.

Index


Code Index:

NAME

Top

WWW::Postini::Exception::UnexpectedResponse - Exception thrown by incorrect content

SYNOPSIS

Top

  use WWW::Postini::Exception::UnexpectedResponse;

  my $content = 'Hello world';
  my $expected = 'Goodbye world';

  if ($content ne $expected) {

    throw WWW::Postini::Exception::UnexpectedResponse(
      "Expected $expected, got $content"
    );

  }  

DESCRIPTION

Top

Whenever a response returned from a web server does not match what is expected, a WWW::Postini::Exception::UnexpectedResponse exception is thrown.

Please refer to WWW::Postini::Exception for information regarding constructors and methods.

SEE ALSO

Top

WWW::Postini, WWW::Postini::Exception

AUTHOR

Top

Peter Guzis, <pguzis@cpan.org>

COPYRIGHT AND LICENSE

Top


WWW-Postini documentation Contained in the WWW-Postini distribution.

package WWW::Postini::Exception::UnexpectedResponse;

use strict;
use warnings;

use WWW::Postini::Exception;

use vars qw( @ISA $VERSION );

@ISA = qw( WWW::Postini::Exception );
$VERSION = '0.01';

1;

__END__