| WWW::Yahoo::Credentials::Exceptions - exceptions related to credentials file |
WWW::Yahoo::Credentials::Exceptions - exceptions related to credentials file
require WWW::Yahoo::Credentials;
eval { something };
if ( ref $@ ) {
if ( $@->isa( 'WWW::Yahoo::Credentials::Exception::Usage' ) ) {
die "Usage error: $@\n";
}
elsif ( $@->isa( 'WWW::Yahoo::Credentials::Exception::Syntax' ) ) {
die "Syntax error: $@\n";
}
elsif ( $@->isa( 'WWW::Yahoo::Credentials::Exception::File' ) ) {
die "File error: $@\n";
}
elsif ( $@->isa( 'WWW::Yahoo::Credentials::Exception::Directory' ) ) {
die "Directory error: $@\n";
}
}
die $@ if $@;
This module defines several classes of exceptions as described below.
Incorrect or invalid usage of method parameters. Note that a full stack trace will be printed when this exception is stringified to help you find out where the mistake occurred. To disable the stack trace, include this line somewhere after ``require WWW::Yahoo::Credentials'':
WWW::Yahoo::Credentials::Exception::Usage->Trace(0);
System error occurred when trying to access credentials file.
System error occurred when trying to access credentials directory.
Invalid syntax in the credentials file.
WWW::Yahoo::Credentials, WWW::Yahoo::Credentials::File, Exception::Class
Ken Neighbors, Ph.D. ken@nsds.com
Copyright 2003 by Ken Neighbors
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.000 or (at your option) any later version of Perl. That is, you can redistribute this module and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software
Foundation; either version 1, or (at your option) any later version,
or
b) the "Artistic License" which comes with Perl, or
c) the license terms of Perl versions later than 5.000
| WWW::Yahoo::Credentials::Exceptions - exceptions related to credentials file |