![]() |
![]()
| ![]() |
![]()
NAMEWWW::Mediawiki::Client::Exception SYNOPSISuse WWW::Mediawiki::Client::Exception; use Data::Dumper; # throw eval { WWW::Mediawiki::Client::LoginException->throw( error => 'Something bad happened', res => $res, cookie_jar => $cookie_jar, ); }; # catch if (UNIVERSAL::isa($@, 'WWW::Mediawiki::Client::LoginException') { print STDERR $@->error; print Dumper($@->res); } DESCRIPTIONA base class for WWW::Mediawiki::Client exceptions. SUBCLASSESWWW::Mediawiki::Client::URLConstructionExceptionIndicates a problem with the URL with which we to the Mediawiki server. WWW::Mediawiki::Client::AuthExceptionIndicates a problem with the provided authentication information WWW::Mediawiki::Client::LoginExceptionIndicates that login failed for an unknown reason Fields:
WWW::Mediawiki::Client::CookieJarExceptionSomething went wrong saving or loading the cookie jar WWW::Mediawiki::Client::FileAccessExceptionSomething went wrong saving or loading a file WWW::Mediawiki::Client::FileTypeExceptionThe file which we attempted to operate on is not a .wiki file WWW::Mediawiki::Client::AbsoluteFileNameExceptionThe file which we attempted to operate on is not a .wiki file WWW::Mediawiki::Client::CommitMessageExceptionThere is a problem with the commit message WWW::Mediawiki::Client::CommitExceptionSomething went wrong while committing a change WWW::Mediawiki::Client::PageDoesNotExistExceptionThere is no such page, either here or on the server WWW::Mediawiki::Client::UpdateNeededExceptionThe page on the server has changed since the local file was last updated WWW::Mediawiki::Client::ConflictsPresentExceptionAn attempt was made to commit a file containing conflicts WWW::Mediawiki::Client::CorruptedConfigFileExceptionThe configuration file cannot be parsed. WWW::Mediawiki::Client::ServerPageExceptionSomething went wrong fetching the server page. Throws:
WWW::Mediawiki::Client::ReadOnlyFieldExceptionClient code tried to set a read-only field. SEE ALSOException::Class AUTHORS
LICENSECopyright (c) 2004 Mark Jaroski. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
|