Steve Purkis > Pangloss > Pangloss::User::Error

Download:
Pangloss-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Pangloss::User::Error - errors specific to Users.

SYNOPSIS ^

  use Pangloss::User::Error;
  use Pangloss::StoredObject::Error;

  throw Pangloss::User::Error(flag => eExists, user => $user_object);
  throw Pangloss::User::Error(flag => eNonExistent, userid => $userid);
  throw Pangloss::User::Error(flag => eInvalid, user => $user,
                              invalid => {eIdRequired => 1});

  # with caught errors:
  print $e->user->id;

DESCRIPTION ^

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

EXPORTED FLAGS ^

Validation errors: eIdRequired

METHODS ^

$e->user

set/get Pangloss::User for this error.

$bool = $e->isIdRequired

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::User, Pangloss::Users

syntax highlighting: