Sick of these
This commit is contained in:
@@ -257,11 +257,11 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
trate = System.Single.MaxValue;
|
||||
}
|
||||
}
|
||||
catch (System.FormatException e)
|
||||
catch (System.FormatException)
|
||||
{
|
||||
throw new System.InvalidOperationException("Invalid value in 'rate' option: " + pl.getParameter("rate"));
|
||||
}
|
||||
catch (System.ArgumentException e)
|
||||
catch (System.ArgumentException)
|
||||
{
|
||||
throw new System.InvalidOperationException("'rate' option is missing");
|
||||
}
|
||||
@@ -270,11 +270,11 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
{
|
||||
tnbytes = pl.getIntParameter("nbytes");
|
||||
}
|
||||
catch (System.FormatException e)
|
||||
catch (System.FormatException)
|
||||
{
|
||||
throw new System.InvalidOperationException("Invalid value in 'nbytes' option: " + pl.getParameter("nbytes"));
|
||||
}
|
||||
catch (System.ArgumentException e)
|
||||
catch (System.ArgumentException)
|
||||
{
|
||||
throw new System.InvalidOperationException("'nbytes' option is missing");
|
||||
}
|
||||
@@ -308,11 +308,11 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
{
|
||||
ncbQuit = pl.getIntParameter("ncb_quit");
|
||||
}
|
||||
catch (System.FormatException e)
|
||||
catch (System.FormatException)
|
||||
{
|
||||
throw new System.InvalidOperationException("Invalid value in 'ncb_quit' option: " + pl.getParameter("ncb_quit"));
|
||||
}
|
||||
catch (System.ArgumentException e)
|
||||
catch (System.ArgumentException)
|
||||
{
|
||||
throw new System.InvalidOperationException("'ncb_quit' option is missing");
|
||||
}
|
||||
@@ -325,11 +325,11 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
{
|
||||
lQuit = pl.getIntParameter("l_quit");
|
||||
}
|
||||
catch (System.FormatException e)
|
||||
catch (System.FormatException)
|
||||
{
|
||||
throw new System.InvalidOperationException("Invalid value in 'l_quit' option: " + pl.getParameter("l_quit"));
|
||||
}
|
||||
catch (System.ArgumentException e)
|
||||
catch (System.ArgumentException)
|
||||
{
|
||||
throw new System.InvalidOperationException("'l_quit' option is missing");
|
||||
}
|
||||
@@ -495,7 +495,7 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (System.IO.EndOfStreamException e)
|
||||
catch (System.IO.EndOfStreamException)
|
||||
{
|
||||
if (printInfo)
|
||||
{
|
||||
@@ -571,7 +571,7 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
throw new System.ArgumentException("Specified negative " + "resolution level index: " + targetRes);
|
||||
}
|
||||
}
|
||||
catch (System.FormatException e)
|
||||
catch (System.FormatException)
|
||||
{
|
||||
throw new System.ArgumentException("Invalid resolution level " + "index ('-res' option) " + pl.getParameter("res"));
|
||||
}
|
||||
@@ -601,7 +601,7 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, "EOC marker not found. " + "Codestream is corrupted.");
|
||||
}
|
||||
}
|
||||
catch (System.IO.EndOfStreamException e)
|
||||
catch (System.IO.EndOfStreamException)
|
||||
{
|
||||
FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, "EOC marker is missing");
|
||||
}
|
||||
@@ -2057,7 +2057,7 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
}
|
||||
in_Renamed.seek(firstPackOff[t][0]);
|
||||
}
|
||||
catch (System.IO.EndOfStreamException e)
|
||||
catch (System.IO.EndOfStreamException)
|
||||
{
|
||||
FacilityManager.getMsgLogger().printmsg(CSJ2K.j2k.util.MsgLogger_Fields.WARNING, "Codestream truncated in tile " + t);
|
||||
return ;
|
||||
@@ -2522,11 +2522,11 @@ namespace CSJ2K.j2k.codestream.reader
|
||||
throw new System.ArgumentException();
|
||||
}
|
||||
}
|
||||
catch (System.IndexOutOfRangeException e)
|
||||
catch (System.IndexOutOfRangeException)
|
||||
{
|
||||
throw new System.ArgumentException("Code-block (t:" + t + ", c:" + c + ", r:" + r + ", s:" + s + ", " + m + "x" + (+ n) + ") not found in codestream");
|
||||
}
|
||||
catch (System.NullReferenceException e)
|
||||
catch (System.NullReferenceException)
|
||||
{
|
||||
throw new System.ArgumentException("Code-block (t:" + t + ", c:" + c + ", r:" + r + ", s:" + s + ", " + m + "x" + n + ") not found in bit stream");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user