| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Variables\Storage\Exceptions; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly. |
| 7 |
} |
| 8 |
|
| 9 |
class BatchOperationFailed extends \Exception { |
| 10 |
private array $error_details; |
| 11 |
|
| 12 |
public function __construct( string $message, array $error_details = [] ) { |
| 13 |
parent::__construct( $message ); |
| 14 |
$this->error_details = $error_details; |
| 15 |
} |
| 16 |
|
| 17 |
public function getErrorDetails(): array { |
| 18 |
return $this->error_details; |
| 19 |
} |
| 20 |
} |
| 21 |
|