1<?php 2 3 4namespace ComboStrap; 5 6 7use Throwable; 8 9/** 10 * Class ExceptionCombo 11 * @package ComboStrap 12 * Adds the canonical 13 * 14 * An error that is in the code 15 */ 16class ExceptionComboRuntime extends \RuntimeException 17{ 18 /** 19 * @var mixed|string 20 */ 21 private $canonical; 22 23 public function __construct($message = "", $canonical = "", $code = 0, Throwable $previous = null) 24 { 25 $this->canonical = $canonical; 26 parent::__construct($message, $code, $previous); 27 } 28 29 /** 30 * @return mixed|string 31 */ 32 public function getCanonical() 33 { 34 return $this->canonical; 35 } 36 37 38} 39