Steve Purkis > Pangloss > Pangloss::Language::Error

Download:
Pangloss-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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>

SEE ALSO ^

Pangloss::Error, Pangloss::Language, Pangloss::Languages

syntax highlighting: