kopia lustrzana https://github.com/njcrawford/EmbroideryReader
Remove exception warning and narrowed exceptions down to just the expected types
rodzic
06e3a79874
commit
7c779615dc
|
@ -142,11 +142,12 @@ namespace embroideryReader
|
|||
blueByte = Convert.ToByte(blue);
|
||||
retval = true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
catch (FormatException /* ex */)
|
||||
{
|
||||
retval = false;
|
||||
}
|
||||
catch (OverflowException /* ex */)
|
||||
{
|
||||
#if DEBUG
|
||||
Console.WriteLine(ex.Message);
|
||||
#endif
|
||||
retval = false;
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue