src/BaseException.php
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;
	}
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;
	}
Provide an array of all parent classes for the provided Exception.

@param \Throwable $Throwable

@return array