WWW::Yahoo::Credentials::Exceptions - exceptions related to credentials file



NAME

WWW::Yahoo::Credentials::Exceptions - exceptions related to credentials file


SYNOPSIS

  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 $@;


DESCRIPTION

This module defines several classes of exceptions as described below.

WWW::Yahoo::Credentials::Exception::Usage

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);

WWW::Yahoo::Credentials::Exception::File

System error occurred when trying to access credentials file.

WWW::Yahoo::Credentials::Exception::Directory

System error occurred when trying to access credentials directory.

WWW::Yahoo::Credentials::Exception::Syntax

Invalid syntax in the credentials file.


SEE ALSO

WWW::Yahoo::Credentials, WWW::Yahoo::Credentials::File, Exception::Class


AUTHOR

Ken Neighbors, Ph.D. ken@nsds.com


COPYRIGHT AND LICENSE

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