Skip to content

Commit 5af6c83

Browse files
committed
use quotes instead of brackets for exception strings
1 parent 3e9c157 commit 5af6c83

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

FlashpointSecurePlayer/EnvironmentVariables.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private string GetValue(EnvironmentVariablesElement environmentVariablesElement)
207207
// because the compatibility layers only take effect
208208
// on process start
209209
if (values.Except(compatibilityLayerValues, StringComparer.OrdinalIgnoreCase).Any()) {
210-
throw new CompatibilityLayersException("The Compatibility Layers (" + value + ") require a restart to be set.");
210+
throw new CompatibilityLayersException("The Compatibility Layers \"" + value + "\" require a restart to be set.");
211211
}
212212
}
213213
}

FlashpointSecurePlayer/FlashpointSecurePlayerGUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ private void ActivateMode(TemplateElement templateElement, ErrorDelegate errorDe
568568
} catch (Exception ex) {
569569
LogExceptionToLauncher(ex);
570570
errorDelegate(String.Format(Properties.Resources.AddressNotUnderstood, URL));
571-
throw new InvalidModeException("The address (" + URL + ") was not understood by the Mode.");
571+
throw new InvalidModeException("The address \"" + URL + "\" was not understood by the Mode.");
572572
}
573573

574574
webBrowserMode = new WebBrowserMode(webBrowserURL, UseFlashActiveXControl) {
@@ -762,7 +762,7 @@ private async Task ActivateModificationsAsync(TemplateElement templateElement, E
762762

763763
if (activeTemplateElement != null) {
764764
if (!String.IsNullOrEmpty(activeTemplateElement.Active)) {
765-
throw new InvalidModificationException("The Template Element (" + activeTemplateElement.Active + ") is active.");
765+
throw new InvalidModificationException("The Template Element \"" + activeTemplateElement.Active + "\" is active.");
766766
}
767767
}
768768

FlashpointSecurePlayer/RegistryStates.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ public async Task StopImportAsync() {
10401040

10411041
if (activeRegistryStateElement == null) {
10421042
Deactivate();
1043-
throw new ConfigurationErrorsException("The Active Registry State Element (" + registryStateElement.Name + ") is null.");
1043+
throw new ConfigurationErrorsException("The Active Registry State Element \"" + registryStateElement.Name + "\" is null.");
10441044
}
10451045

10461046
keyName = GetUserKeyValueName(registryStateElement.KeyName);

FlashpointSecurePlayer/Shared.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,11 +2218,11 @@ public static async Task<Uri> DownloadAsync(string name) {
22182218
} catch (Exceptions.DownloadFailedException) {
22192219
throw;
22202220
} catch (ArgumentException) {
2221-
throw new Exceptions.DownloadFailedException("The download failed because the download name (" + name + ") is invalid.");
2221+
throw new Exceptions.DownloadFailedException("The download failed because the download name \"" + name + "\" is invalid.");
22222222
} catch (HttpRequestException) {
22232223
throw new Exceptions.DownloadFailedException("The download failed because the HTTP Request is invalid.");
22242224
} catch (InvalidOperationException) {
2225-
throw new Exceptions.DownloadFailedException("The download failed because the address (" + name + ") was not understood.");
2225+
throw new Exceptions.DownloadFailedException("The download failed because the address \"" + name + "\" was not understood.");
22262226
} finally {
22272227
downloadSemaphoreSlim.Release();
22282228
}

0 commit comments

Comments
 (0)