librenms/librenms

View on GitHub
LibreNMS/Exceptions/JsonAppBase64DecodeException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}