.htaccess
1 year ago
AjaxException.php
1 year ago
ArchiveException.php
1 year ago
BackupException.php
1 year ago
ConfigException.php
1 year ago
ConnectionException.php
1 year ago
CronException.php
1 year ago
CrontabException.php
1 year ago
DBException.php
1 year ago
DestinationException.php
1 year ago
DirIteratorException.php
1 year ago
DirIteratorFileIOException.php
1 year ago
DirIteratorFileVanishedException.php
1 year ago
DownloaderException.php
1 year ago
ExecutionTimeException.php
1 year ago
ExportException.php
1 year ago
ExtractException.php
1 year ago
FieldsValidationException.php
1 year ago
GzipException.php
1 year ago
HttpRequestException.php
1 year ago
IOException.php
1 year ago
IOVanishedException.php
1 year ago
JBException.php
1 year ago
JetBackupLinuxException.php
1 year ago
LicenseException.php
1 year ago
LogException.php
1 year ago
NotificationException.php
1 year ago
QueueException.php
1 year ago
RegistrationException.php
1 year ago
ReindexException.php
1 year ago
RestoreException.php
1 year ago
SGBExtractorException.php
1 year ago
SGBMigrationException.php
1 year ago
ScheduleException.php
1 year ago
SnapshotMetaException.php
1 year ago
TaskException.php
1 year ago
UserInputException.php
1 year ago
ValidationException.php
1 year ago
VanishedException.php
1 year ago
index.html
1 year ago
web.config
1 year ago
AjaxException.php
32 lines
| 1 | <?php |
| 2 | /* |
| 3 | * |
| 4 | * JetBackup @ package |
| 5 | * Created By Idan Ben-Ezra |
| 6 | * |
| 7 | * Copyrights @ JetApps |
| 8 | * https://www.jetapps.com |
| 9 | * |
| 10 | **/ |
| 11 | namespace JetBackup\Exception; |
| 12 | |
| 13 | if (!defined( '__JETBACKUP__')) die('Direct access is not allowed'); |
| 14 | |
| 15 | class AjaxException extends JBException { |
| 16 | |
| 17 | private array $data; |
| 18 | |
| 19 | /** |
| 20 | * @param string $message |
| 21 | * @param array $data |
| 22 | * @param int $code |
| 23 | * @param $previous |
| 24 | */ |
| 25 | public function __construct(string $message="", array $data=[], int $code = 0, $previous=null) { |
| 26 | $this->data = $data; |
| 27 | parent::__construct($message, $code, $previous); |
| 28 | } |
| 29 | |
| 30 | public function getData():array { return $this->data; } |
| 31 | } |
| 32 |