NAME
Pangloss::Language::Error - errors specific to Languages.
SYNOPSIS
use Pangloss::Language::Error;
use Pangloss::StoredObject::Error;
throw Pangloss::Language::Error(flag => eExists, language => $language);
throw Pangloss::Language::Error(flag => eNonExistent, iso_code => $iso_code);
throw Pangloss::Language::Error(flag => eInvalid, language => $language,
invalid => {eIsoCodeRequired => 1});
# with caught errors:
print $e->language->iso_code;
DESCRIPTION
Language Errors class. Inherits interface from Pangloss::StoredObject::Error. May contain a language object associated with the error.
EXPORTED FLAGS
Validation errors: eIsoCodeRequired eDirectionRequired
METHODS
- $e->language
-
set/get Pangloss::Language for this error.
- $bool = $e->isIsoCodeRequired, $e->isDirectionRequired
-
Test if this error's flag is equal to the named flag.
AUTHOR
Steve Purkis <spurkis@quiup.com>