NAME

    Hash::Fold::Error

SYNOPSIS

    use Hash::Fold::Error;

    Hash::Fold::Error->throw($message);

    Hash::Fold::Error->throw({
        message => $message,
        path    => $path,
        type    => $type,
    });

DESCRIPTION

Hash::Fold throws an instance of this class on error.

ATTRIBUTES

path

If the path attribute is defined, the error was thrown during merging or unfolding, and the message indicates the location in the structure that was inappropriately used as an array or a hash.

"type" is set to either array or hash.

type

When defined, type indicates the type of the structure which caused the error.