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