# jetpack/16.2/jetpack_vendor/automattic/jetpack-waf/src/exceptions/class-rules-api-exception.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.2. 28 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.2/code/jetpack_vendor/automattic/jetpack-waf/src/exceptions/class-rules-api-exception.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.2/raw/jetpack_vendor/automattic/jetpack-waf/src/exceptions/class-rules-api-exception.php
- Modified: 2025-11-24T17:00:32+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/jetpack/16.2/code/jetpack_vendor/automattic/jetpack-waf/src/exceptions/class-rules-api-exception.php#L10-L20`.

```php
<?php
/**
 * Rules API exception.
 *
 * @since 0.10.1
 *
 * @package automattic/jetpack-waf
 */

namespace Automattic\Jetpack\Waf;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

/**
 * Custom exception for WAF rules API errors.
 */
class Rules_API_Exception extends Waf_Exception {

	/**
	 * Error slug which maps to WP_Error::$code.
	 *
	 * @var string
	 */
	const SLUG = 'rules_api_error';
}

```
