NAME

Pangloss::Term::Error - errors specific to Terms.

SYNOPSIS

use Pangloss::Term::Error;
use Pangloss::StoredObject::Error;

throw Pangloss::Term::Error(flag => eExists, term => $term);
throw Pangloss::Term::Error(flag => eNonExistent, name => $name);
throw Pangloss::Term::Error(flag => eInvalid, term => $term,
                            invalid => {eTermNameRequired => 1});

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

DESCRIPTION

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

EXPORTED FLAGS

Validation errors: eStatusRequired eConceptRequired eLanguageRequired

METHODS

$e->term

set/get Pangloss::Term for this error.

$bool = $e->isStatusRequired, $e->isConceptRequired, $e->isLanguageRequired

Test if this error's flag is equal to the named flag.

AUTHOR

Steve Purkis <spurkis@quiup.com>

SEE ALSO

Error, Pangloss::StoredObject::Error, Pangloss::Term, Pangloss::Terms