<?php
/**
 * Allow Exception
 *
 * @package VMPFence
 * @since 2.0.0
 */

// Prevent direct access
if (!defined('ABSPATH')) {
    exit;
}

/**
 * Exception thrown when a request should be allowed
 * Causes immediate exit from all firewall checks
 */
class VMPFence_Allow_Exception extends VMPFence_Firewall_Exception {
    
    /**
     * Constructor
     *
     * @param string $message Exception message
     * @param int $code Exception code
     * @param Exception $previous Previous exception
     */
    public function __construct($message = 'Request whitelisted', $code = 0, Exception $previous = null) {
        parent::__construct($message, $code, $previous);
    }
}
