Steve Purkis > Pangloss-0.06 > Pangloss::Category::Error

Download:
Pangloss-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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

syntax highlighting: