1<?php 2 3namespace LibreNMS\Exceptions; 4 5use Throwable; 6 7class JsonAppExtendErroredException extends JsonAppException 8{ 9 private $output; 10 private $parsed_json; 11 12 public function __construct($message, $output, $parsed_json = [], $code = 0, Throwable $previous = null) 13 { 14 parent::__construct($message, $code, $previous); 15 $this->output = $output; 16 $this->parsed_json = $parsed_json; 17 } 18 19 public function getOutput() 20 { 21 return $this->output; 22 } 23 24 public function getParsedJson() 25 { 26 return $this->parsed_json; 27 } 28} 29