diff --git a/README b/README index b3df4ba3a7606f243df94bf78132961a5eb9edd4..20e8c808e2863d1ffc2f09036e8f84fed547e8ea 100644 --- a/README +++ b/README @@ -14,7 +14,8 @@ Installation See also the Module::Build documentation. Extra modules required for testing: - - Test::More + - Test::Command - Test::Compile + - Test::More - Test::Pod - - Test::Command + - Test::Synopsis diff --git a/lib/WWW/Efa/Error/Setup.pm b/lib/WWW/Efa/Error/Setup.pm index 521bb55875fbd977453e5bfec87927b7ae463ff6..e3de3e3eb831d0f5f4c22dee1fbf376ae2e17510 100644 --- a/lib/WWW/Efa/Error/Setup.pm +++ b/lib/WWW/Efa/Error/Setup.pm @@ -1,5 +1,28 @@ package WWW::Efa::Error::Setup; +=head1 NAME + +WWW::Efa::Error::Setup - WWW::Efa error, happened in ->new() + +=head1 SYNOPSIS + + use WWW::Efa::Error::Setup; + + my $error = WWW::Efa::Error::Setup->new( + 'max_interchanges', '-1', 'Must be positive' + ); + + die $error->as_string(); + # WWW::Efa setup error: Wrong arg for option max_interchanges: -1 + # Must be positive + +=head1 DESCRIPTION + +Class for all WWW::Efa-internal errors occuring during initialization. Usually +caused by missing or invalid setup arguments. + +=cut + use strict; use warnings; use 5.010;