package com.onedrive.sdk.http; import java.util.Iterator; import java.util.List; import java.util.Locale; public class OneDriveFatalServiceException extends OneDriveServiceException { public static final String SDK_BUG_URL = "https://github.com/OneDrive/onedrive-sdk-android/issues"; protected OneDriveFatalServiceException(String str, String str2, List<String> list, String str3, int i10, String str4, List<String> list2, OneDriveErrorResponse oneDriveErrorResponse) { super(str, str2, list, str3, i10, str4, list2, oneDriveErrorResponse); } @Override // com.onedrive.sdk.http.OneDriveServiceException public String getMessage(boolean z10) { StringBuilder sb2 = new StringBuilder(); sb2.append("[This is an unexpected error from OneDrive, please report this at "); sb2.append(SDK_BUG_URL); Iterator<String> it = getResponseHeaders().iterator(); while (true) { if (!it.hasNext()) { break; } String next = it.next(); if (next.toLowerCase(Locale.ROOT).startsWith("x-throwsite")) { sb2.append(", ID = "); sb2.append(next); break; } } sb2.append(']'); sb2.append('\n'); sb2.append(super.getMessage(true)); return sb2.toString(); } }