# vikbooking/1.8.16/libraries/adapter/rss/optinexception.php

VikBooking Hotel Booking Engine &amp; PMS, version 1.8.16. 47 lines.

- Page: https://pluginprobe.com/plugins/vikbooking/1.8.16/code/libraries/adapter/rss/optinexception.php
- Raw: https://pluginprobe.com/plugins/vikbooking/1.8.16/raw/libraries/adapter/rss/optinexception.php
- Modified: 2026-10-01T16:23:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/vikbooking/1.8.16/code/libraries/adapter/rss/optinexception.php#L10-L20`.

```php
<?php
/** 
 * @package     VikWP - Libraries
 * @subpackage  adapter.rss
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

/**
 * Exception used to detect whether the customer didn't
 * explicitly choose to opt in to the RSS service.
 *
 * @since 10.1.31
 */
class JRssOptInException extends Exception
{
	/**
	 * Class constructor.
	 *
	 * @param 	string     $message   The error message.
	 * @param 	integer    $code      The error code.
	 * @param 	Throwable  $previous  The previous stack exception.
	 */
	public function __construct($message = null, $code = 0, ?Throwable $previous = null)
	{
		if (!$message)
		{
			// use default error message if not specified
			$message = 'Missing RSS opt in';
		}

		if (!$code)
		{
			// use default erro code if not specified
			$message = 400;
		}

		// construct exception
		parent::__construct($message, $code, $previous);
	}
}

```
