Source for file exceptions.php
Documentation is available at exceptions.php
* Definition of Exceptions and functions that throw those exceptions to be used by vmpsd_external and vmps_lastseen
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation.
* @author Seiler Thomas (contributer)
* @copyright 2007 FreeNAC
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License Version 2
* @link http://www.freenac.net
* This Exception may be thrown at any point in the decision process to
* indicate that the current request should be denied
* This class extends the {@link Exception} class.
parent::__construct("DENY: ".
$why);
* This function is some syntactic sugar to throw a DenyException from the
* This Exception may be thrown at any point in the decision process to
* indicate that the current request should be allowed into a given VLAN
* This class extends the {@link Exception} class.
# The vlan that we communicate to VMPSD
# Constructor to set this VLAN
throw
new DenyException("AllowException could not map vlan number $vlan to a name");
public function getDecidedVlan() {
* This function is some syntactic sugar to throw an AllowException
* from the policy class. It also handles default vlan
* @param int $vlan Vlan ID of the VLAN we want to assign
throw new AllowException($vlan);
Documentation generated on Mon, 17 Nov 2008 01:10:31 +0100 by phpDocumentor 1.4.0