NAME

WWW::Efa::Error::Setup - WWW::Efa error, happened in ->new()

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

DESCRIPTION

Class for all WWW::Efa-internal errors occuring during initialization. Usually caused by missing or invalid setup arguments.

METHODS

$error->as_string()

Return the error as string, can directly be displayed to the user

$error->option()

Returns the option which caused the error.

$error->value()

Returns the value which caused the error.

$error->message()

Returns a message describing what went wrong and how to fix it.