public static function getExceptionTrace(\Throwable $exception, $asString = true) {
        $trace = $exception->getTrace();
        $trace = static::reduceStackTrace($exception, $trace);
        return $asString ? static::getExceptionTraceAsString($trace) : $trace;
    }
public static function getExceptionTrace(\Throwable $exception, $asString = true) {
        $trace = $exception->getTrace();
        $trace = static::reduceStackTrace($exception, $trace);
        return $asString ? static::getExceptionTraceAsString($trace) : $trace;
    }
public static function getExceptionTrace ( \ Throwable $ exception , $ asString = true ) { $ trace = $ exception -> getTrace ( ) ; $ trace = static :: reduceStackTrace ( $ exception , $ trace ) ; return $ asString ? static :: getExceptionTraceAsString ( $ trace ) : $ trace ; }
Get trace from exception
@param \Throwable $exception
@param bool       $asString
@return array|string
Get trace from exception