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