Skip to content

Commit 8852427

Browse files
committed
Fix thrown exception class
1 parent 6177a07 commit 8852427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

itext/itext.io/itext/io/source/RandomAccessSourceFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private IRandomAccessSource CreateByReadingToMemory(String filename)
272272
Stream stream = ResourceUtil.GetResourceStream(filename);
273273
if (stream == null)
274274
{
275-
throw new IOException(MessageFormatUtil.Format(IOException._1NotFoundAsFileOrResource
275+
throw new System.IO.IOException(MessageFormatUtil.Format(IOException._1NotFoundAsFileOrResource
276276
, filename));
277277
}
278278
return CreateByReadingToMemory(stream);
@@ -302,7 +302,7 @@ private IRandomAccessSource CreateByReadingToMemory(Stream stream)
302302
{
303303
stream.Dispose();
304304
}
305-
catch (IOException)
305+
catch (System.IO.IOException)
306306
{
307307
}
308308
}

0 commit comments

Comments
 (0)