# elementor/3.32.5/data/v2/base/exceptions/wp-error-exception.php

Elementor Website Builder – more than just a page builder, version 3.32.5. 15 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.32.5/code/data/v2/base/exceptions/wp-error-exception.php
- Raw: https://pluginprobe.com/plugins/elementor/3.32.5/raw/data/v2/base/exceptions/wp-error-exception.php
- Modified: 2025-03-17T13:28:54+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/elementor/3.32.5/code/data/v2/base/exceptions/wp-error-exception.php#L10-L20`.

```php
<?php
namespace Elementor\Data\V2\Base\Exceptions;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class WP_Error_Exception extends Data_Exception {
	public function __construct( \WP_Error $wp_error ) {
		parent::__construct( $wp_error->get_error_message(), $wp_error->get_error_code(), [
			'status' => $wp_error->get_error_code(),
		] );
	}
}

```
