The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DataLoader::Error - simple error message object for use with DataLoader

SYNOPSIS

 my $error = DataLoader::Error->new("timed out");

 # Recommended
 DataLoader->error("timed out")

DESCRIPTION

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.

If a caller requests a data load and an object of this class is returned, it will trigger an exception for the caller.

METHODS

new ( message )

Accepts message (a string) and creates the error object.

message ()

Returns the message for this error object.

throw ()

Equivalent to die $self->message.