| Pangloss documentation | view source | Contained in the Pangloss distribution. |
Pangloss::Language::Error - errors specific to Languages.
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;
Language Errors class. Inherits interface from Pangloss::StoredObject::Error. May contain a language object associated with the error.
Validation errors: eIsoCodeRequired eDirectionRequired
set/get Pangloss::Language for this error.
Test if this error's flag is equal to the named flag.
Steve Purkis <spurkis@quiup.com>
| Pangloss documentation | view source | Contained in the Pangloss distribution. |