aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-04-28 22:32:25 +0100
committerMichael Williamson <mike@zwobble.org>2016-04-28 22:32:25 +0100
commitdeaf4b7d433aeab4a422f1b875f802cad16b7014 (patch)
tree9c4fcf22b6f75218d933867d275c5bb00e7a30e6 /dotnet/Mammoth/Couscous/java
parentf563dc02191e2261224077942f27ecbd70566b68 (diff)
Handle files not found
Diffstat (limited to 'dotnet/Mammoth/Couscous/java')
-rw-r--r--dotnet/Mammoth/Couscous/java/net/URL.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/dotnet/Mammoth/Couscous/java/net/URL.cs b/dotnet/Mammoth/Couscous/java/net/URL.cs
index af6e021..88479e8 100644
--- a/dotnet/Mammoth/Couscous/java/net/URL.cs
+++ b/dotnet/Mammoth/Couscous/java/net/URL.cs
@@ -20,6 +20,8 @@ namespace Mammoth.Couscous.java.net {
}
} catch (System.UriFormatException) {
return ToJava.StreamToInputStream(System.IO.File.OpenRead(_url));
+ } catch (System.Net.WebException exception) {
+ throw new java.io.IOException(exception.Message);
}
}
}