HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux bsx-1-dev 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 9 10:15:05 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/memberpress/app/lib/exceptions/MeprDbMigrationException.php
<?php

if (!defined('ABSPATH')) {
    die('You are not allowed to call this page directly.');
}

class MeprDbMigrationException extends MeprLogException
{
    /**
     * Constructor for the MeprDbMigrationException class.
     *
     * @param string    $message  The message of the exception.
     * @param integer   $code     The code of the exception.
     * @param Exception $previous The previous exception.
     *
     * @return void
     */
    public function __construct($message, $code = 0, Exception $previous = null)
    {
        delete_transient('mepr_migrating');
        delete_transient('mepr_current_migration');
        set_transient('mepr_migration_error', $message, MeprUtils::hours(4));
        parent::__construct($message, $code, $previous);
    }
}