WWW::USF::Directory::Exception::TooManyResults - Exception object for too many


WWW-USF-Directory documentation Contained in the WWW-USF-Directory distribution.

Index


Code Index:

NAME

Top

WWW::USF::Directory::Exception::TooManyResults - Exception object for too many results.

VERSION

Top

Version 0.003

SYNOPSIS

Top

  use WWW::USF::Directory::Exception::TooManyResults;

  WWW::USF::Directory::Exception::TooManyResults->throw(
    message     => 'Your search returned more than 25 matches',
    max_results => 25,
  );

DESCRIPTION

Top

This is an exception class for exceptions where the directory will not return any results because the search was not specific enough in the WWW::USF::Directory library.

INHERITANCE

Top

This class inherits from the base class of WWW::USF::Directory::Exception and all attributes and methods in that class are also in this class.

ATTRIBUTES

Top

max_results

Required. This is the maximum number of results the directory will return.

METHODS

Top

This class does not contain any methods.

DEPENDENCIES

Top

* Moose 0.89
* MooseX::StrictConstructor 0.08
* WWW::USF::Directory::Exception
* namespace::clean 0.04

AUTHOR

Top

Douglas Christopher Wilson, <doug at somethingdoug.com>

BUGS AND LIMITATIONS

Top

Please report any bugs or feature requests to bug-www-usf-directory at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW::USF::Directory. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

I highly encourage the submission of bugs and enhancements to my modules.

LICENSE AND COPYRIGHT

Top


WWW-USF-Directory documentation Contained in the WWW-USF-Directory distribution.

package WWW::USF::Directory::Exception::TooManyResults;

use 5.008001;
use strict;
use warnings 'all';

###########################################################################
# METADATA
our $AUTHORITY = 'cpan:DOUGDUDE';
our $VERSION   = '0.003';

###########################################################################
# MOOSE
use Moose 0.89;
use MooseX::StrictConstructor 0.08;

###########################################################################
# MOOSE TYPES
use MooseX::Types::Moose qw(
	Int
);

###########################################################################
# BASE CLASS
extends q{WWW::USF::Directory::Exception};

###########################################################################
# ALL IMPORTS BEFORE THIS WILL BE ERASED
use namespace::clean 0.04 -except => [qw(meta)];

###########################################################################
# ATTRIBUTES
has max_results => (
	is  => 'ro',
	isa => Int,

	documentation => q{The maximum number of results the directory will return},
	required      => 1,
);

###########################################################################
# MAKE MOOSE OBJECT IMMUTABLE
__PACKAGE__->meta->make_immutable;

1;

__END__