mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
27 lines
474 B
PHP
27 lines
474 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace LibreNMS\Exceptions;
|
||
|
|
|
||
|
|
class HostnameExistsException extends HostExistsException
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
public $hostname;
|
||
|
|
/**
|
||
|
|
* @var string
|
||
|
|
*/
|
||
|
|
public $existing;
|
||
|
|
|
||
|
|
public function __construct(string $hostname)
|
||
|
|
{
|
||
|
|
$this->hostname = $hostname;
|
||
|
|
|
||
|
|
$message = trans('exceptions.host_exists.hostname_exists', [
|
||
|
|
'hostname' => $hostname,
|
||
|
|
]);
|
||
|
|
|
||
|
|
parent::__construct($message);
|
||
|
|
}
|
||
|
|
}
|