The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Pangloss::Category::Error - errors specific to Categories.

SYNOPSIS

use Pangloss::Category::Error;
use Pangloss::StoredObject::Error;

throw Pangloss::Category::Error(flag => eExists, category => $category);
throw Pangloss::Category::Error(flag => eNonExistent, name => $name);
throw Pangloss::Category::Error(flag => eInvalid, category => $category,
                             invalid => {eNameRequired => 1});

# with caught errors:
print $e->category->name;

DESCRIPTION

Category Errors class. Inherits interface from Pangloss::StoredObject::Error. May contain a category object associated with the error.

METHODS

$e->category

set/get Pangloss::Category for this error.

AUTHOR

Steve Purkis <spurkis@quiup.com>

SEE ALSO

Error, Pangloss::StoredObject::Error, Pangloss::Category, Pangloss::Categories