Tweak a little POD.
Fix a bad exception message.
This commit is contained in:
parent
b9bb5d79ce
commit
e151b99dca
2 changed files with 4 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ sub addShipper {
|
|||
my $options = shift;
|
||||
WebGUI::Error::InvalidParam->throw(error => q{Must provide a class to create an object})
|
||||
unless defined $requestedClass;
|
||||
WebGUI::Error::InvalidParam->throw(error => qq{The requested class $requestedClass is not enabled in your WebGUI configuration file}, param => $requestedClass)
|
||||
WebGUI::Error::InvalidParam->throw(error => q{The requested class is not enabled in your WebGUI configuration file}, param => $requestedClass)
|
||||
unless isIn($requestedClass, (keys %{$self->getDrivers}) );
|
||||
WebGUI::Error::InvalidParam->throw(error => q{You must pass a hashref of options to create a new ShipDriver object})
|
||||
unless defined($options) and ref $options eq 'HASH' and scalar keys %{ $options };
|
||||
|
|
@ -66,7 +66,7 @@ sub addShipper {
|
|||
|
||||
=head2 getDrivers ( )
|
||||
|
||||
This subroutine returns a hash reference of available shipping driver classes as keys with their human readable names as values, read from the WebGUI config file in the shippingDrivers directive.
|
||||
This method returns a hash reference of available shipping driver classes as keys with their human readable names as values, read from the WebGUI config file in the shippingDrivers directive.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
|
|||
|
|
@ -245,6 +245,8 @@ sub getId {
|
|||
Return a human readable name for this driver. Never overridden in the
|
||||
subclass, instead specified in definition with the name "name".
|
||||
|
||||
This is a class method.
|
||||
|
||||
=cut
|
||||
|
||||
sub getName {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue