mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
34 lines
661 B
PHP
34 lines
661 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace LibreNMS\Exceptions;
|
||
|
|
||
|
use Throwable;
|
||
|
|
||
|
class JsonAppBase64DecodeException extends JsonAppException
|
||
|
{
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
private $output;
|
||
|
|
||
|
/**
|
||
|
* @param string $message The message.
|
||
|
* @param string $output The return from snmpget.
|
||
|
* @param int $code Error code.
|
||
|
* @return static
|
||
|
*/
|
||
|
public function __construct($message, $output, $code = 0, Throwable $previous = null)
|
||
|
{
|
||
|
parent::__construct($message, $code, $previous);
|
||
|
$this->output = $output;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getOutput()
|
||
|
{
|
||
|
return $this->output;
|
||
|
}
|
||
|
}
|