DataLoader::Error - simple error message object for use with DataLoader
my $error = DataLoader::Error->new("timed out"); # Recommended DataLoader->error("timed out")
This is an internal error object and should be created via DataLoader->error. Its only purpose is to mark error results within the cache and the return values of the batch loading function, to distinguish them from successful results.
DataLoader->error
If a caller requests a data load and an object of this class is returned, it will trigger an exception for the caller.
Accepts message (a string) and creates the error object.
message
Returns the message for this error object.
Equivalent to die $self->message.
die $self->message
To install DataLoader, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DataLoader
CPAN shell
perl -MCPAN -e shell install DataLoader
For more information on module installation, please visit the detailed CPAN module installation guide.