WooCommerce Code Reference

class-wc-rest-exception.php

Source code

<?php
/**
 * WooCommerce REST Exception Class
 *
 * Extends Exception to provide additional data.
 *
 * @package WooCommerce\RestApi
 * @since   2.6.0
 */

defined( 'ABSPATH' ) || exit;

/**
 * WC_REST_Exception class.
 */
class WC_REST_Exception extends WC_Data_Exception {}