Chris Winters > OpenInteract-1.99_06 > OpenInteract2::Exception::Security

Download:
OpenInteract-1.99_06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.13   Source  

NAME ^

OpenInteract2::Exception::Security - Security exceptions

SYNOPSIS ^

 # Use the shortcut
 
 use OpenInteract2::Exception qw( oi_security_error );
 use SPOPS::Secure qw( :level );
 
 oi_security_error "Cannot fetch object",
                   { security_found => SEC_LEVEL_READ,
                     security_required => SEC_LEVEL_WRITE };
 
 # Be explicity
 
 use OpenInteract2::Exception::Security;
 use SPOPS::Secure qw( :level );
 
 OpenInteract2::Exception::Security->throw(
                    "Cannot fetch object",
                    { security_found => SEC_LEVEL_READ,
                      security_required => SEC_LEVEL_WRITE } );

DESCRIPTION ^

Custom exception for security violations.

SEE ALSO ^

OpenInteract2::Exception

Exception::Class

COPYRIGHT ^

Copyright (c) 2002-2005 Chris Winters. All rights reserved.

AUTHORS ^

Chris Winters <chris@cwinters.com>