D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
modules
/
monitoring
/
vendor
/
brick
/
varexporter
/
src
/
Filename :
ExportException.php
back
Copy
<?php declare (strict_types=1); namespace PleskMonitoring\Brick\VarExporter; use Throwable; final class ExportException extends \Exception { /** * @param string $message * @param string[] $path * @param Throwable|null $previous */ public function __construct(string $message, array $path, ?Throwable $previous = null) { if ($path) { $message = 'At ' . self::pathToString($path) . ': ' . $message; } parent::__construct($message, 0, $previous); } /** * Returns a string representation of the given path. * * @param string[] $path * * @return string */ public static function pathToString(array $path) : string { return '[' . \implode('][', $path) . ']'; } }