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

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