code: public static function getExceptionTree(\Throwable $Throwable){
  
  		$exception = get_class($Throwable);
  
  		// Build the "tree"
  
  		for($exception_tree[] = $exception; $exception =
  			get_parent_class($exception); $exception_tree[] = $exception){
  			;
  		}
  
  		$exception_tree = array_reverse($exception_tree);
  
  		if(count($exception_tree) > 1){
  			array_shift($exception_tree);
  		}
  
  		return $exception_tree;
  	}
docs: Provide an array of all parent classes for the provided Exception.
  
  @param \Throwable $Throwable
  
  @return array