Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SPOPS::Exception::SecuUser(Contributed Perl DocumSPOPS::Exception::Security(3)

NAME
       SPOPS::Exception::Security - SPOPS exception with extra security
       parameters

SYNOPSIS
	my $object = eval { My::Class->fetch( $id ) };
	if ( $@	) {
	    if ( $@->isa( 'SPOPS::Exception::Security' ) ) {
		print "Required	security: ", $@->security_required, "\n",
		      "Found security: ", $@->security_found, "\n";
	    }
	}

DESCRIPTION
       Same as SPOPS::Exception	but we add two new properties:

       security_required ($)

       Security	level that we were trying to meet.

       security_found ($)

       Security	level found.

METHODS
       to_string()

       We override the exception stringification to include the	requested and
       found security levels (in human-readable	format).

       You can also use	a shortcut if you are throwing errors:

	use SPOPS::Exception::Security qw( spops_security_error	);

	...
	spops_security_error "Security error trying to fetch foo ",
			     { security_required => SEC_LEVEL_WRITE,
			       security_found	 => SEC_LEVEL_READ };

BUGS
       None known.

TO DO
       Nothing known.

SEE ALSO
       SPOPS::Exception

       SPOPS::Secure

COPYRIGHT
       Copyright (c) 2001-2004 intes.net, inc..	All rights reserved.

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHORS
       Chris Winters <chris@cwinters.com>

perl v5.32.0			  2004-06-02	 SPOPS::Exception::Security(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | BUGS | TO DO | SEE ALSO | COPYRIGHT | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SPOPS::Exception::Security&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help